| /llvm-project-15.0.7/libc/AOR_v20.02/math/test/rtest/ |
| H A D | wrappers.c | 18 ctx->nops = ctx->nresults = 0; in wrapper_init() 34 ctx->mpfr_ops[ctx->nops] = r; in wrapper_op_real() 35 ctx->ieee_ops[ctx->nops] = ieee; in wrapper_op_real() 36 ctx->size_ops[ctx->nops] = size; in wrapper_op_real() 44 ctx->mpc_ops[ctx->nops] = c; in wrapper_op_complex() 45 ctx->ieee_ops[ctx->nops] = ieee; in wrapper_op_complex() 46 ctx->size_ops[ctx->nops] = size; in wrapper_op_complex() 109 assert(ctx->mpfr_result || ctx->mpc_result); in wrapper_get_size() 112 assert(ctx->mpfr_ops[op] || ctx->mpc_ops[op]); in wrapper_get_size() 120 assert(ctx->mpfr_result || ctx->mpc_result); in wrapper_is_complex() [all …]
|
| H A D | wrappers.h | 25 typedef void (*wrapperfunc)(wrapperctx *ctx); 49 void wrapper_init(wrapperctx *ctx); 86 int wrapper_get_nops(wrapperctx *ctx); 87 int wrapper_get_size(wrapperctx *ctx, int op); 88 int wrapper_is_complex(wrapperctx *ctx, int op); 96 void wrapper_set_nan(wrapperctx *ctx); 97 void wrapper_set_nan_r(wrapperctx *ctx); 98 void wrapper_set_nan_i(wrapperctx *ctx); 102 void wrapper_set_int(wrapperctx *ctx, int val); 103 void wrapper_set_int_r(wrapperctx *ctx, int val); [all …]
|
| /llvm-project-15.0.7/polly/lib/External/isl/ |
| H A D | isl_ctx.c | 73 if (!ctx) in isl_ctx_next_operation() 79 if (ctx->max_operations && ctx->operations >= ctx->max_operations) in isl_ctx_next_operation() 122 if (!ctx) in isl_ctx_set_full_error() 277 isl_assert(ctx, ctx->ref > 0, return); in isl_ctx_deref() 307 isl_args_free(ctx->user_args, ctx->user_opt); in isl_ctx_free() 323 return ctx ? ctx->error : isl_error_invalid; in isl_ctx_last_error() 330 return ctx ? ctx->error_msg : NULL; in isl_ctx_last_error_msg() 337 return ctx ? ctx->error_file : NULL; in isl_ctx_last_error_file() 344 return ctx ? ctx->error_line : -1; in isl_ctx_last_error_line() 376 return ctx ? ctx->abort : -1; in isl_ctx_aborted() [all …]
|
| H A D | isl_test.c | 717 isl_ctx *ctx; in val_check_equal() local 951 if (test_un_val(ctx) < 0) in test_val() 3860 isl_val_one(ctx)); in test_pwqp() 5335 r = test_schedule(ctx); in test_schedule_whole() 5350 r = test_schedule(ctx); in test_schedule_incremental() 6855 if (test_upa(ctx) < 0) in test_aff() 7929 isl_ctx *ctx; in find_vertex() local 9508 isl_ctx *ctx; in before_for() local 10874 struct isl_ctx *ctx; in main() local 10887 isl_ctx_free(ctx); in main() [all …]
|
| H A D | isl_blk.c | 82 for (i = 1; ctx->cache[best].size != n && i < ctx->n_cached; ++i) { in isl_blk_alloc() 84 if (ctx->cache[i].size > ctx->cache[best].size) in isl_blk_alloc() 87 ctx->cache[i].size < ctx->cache[best].size) in isl_blk_alloc() 93 ctx->cache[best] = ctx->cache[ctx->n_cached]; in isl_blk_alloc() 95 ctx->n_miss = 0; in isl_blk_alloc() 97 isl_blk_free_force(ctx, ctx->cache[0]); in isl_blk_alloc() 99 ctx->cache[0] = ctx->cache[ctx->n_cached]; in isl_blk_alloc() 100 ctx->n_miss = 0; in isl_blk_alloc() 122 ctx->cache[ctx->n_cached++] = block; in isl_blk_free() 132 isl_blk_free_force(ctx, ctx->cache[i]); in isl_blk_clear_cache() [all …]
|
| H A D | isl_test_cpp-generic.cc | 29 void test_pointer(isl::ctx ctx) in test_pointer() argument 61 void test_constructors(isl::ctx ctx) in test_constructors() argument 91 void test_parameters_int(isl::ctx ctx) in test_parameters_int() argument 114 void test_parameters_obj(isl::ctx ctx) in test_parameters_obj() argument 141 void test_parameters(isl::ctx ctx) in test_parameters() argument 152 void test_return_obj(isl::ctx ctx) in test_return_obj() argument 165 void test_return_int(isl::ctx ctx) in test_return_int() argument 179 void test_return_string(isl::ctx ctx) in test_return_string() argument 198 static void test_every_generic(isl::ctx ctx) in test_every_generic() argument 225 static void test_space(isl::ctx ctx) in test_space() argument [all …]
|
| H A D | isl_test_cpp.cc | 44 static void test_return_bool(isl::ctx ctx) in test_return_bool() argument 70 static void test_return(isl::ctx ctx) in test_return() argument 85 static void test_foreach(isl::ctx ctx) in test_foreach() argument 122 static void test_every(isl::ctx ctx) in test_every() argument 146 static void test_exception(isl::ctx ctx) in test_exception() argument 176 static void test_schedule_tree(isl::ctx ctx) in test_schedule_tree() argument 247 static void test_ast_build(isl::ctx ctx) in test_ast_build() argument 294 static void test_typed(isl::ctx ctx) in test_typed() argument 334 test_every(ctx); in main() 336 test_space(ctx); in main() [all …]
|
| H A D | isl_test_cpp-checked.cc | 61 void test_return_bool(isl::ctx ctx) in test_return_bool() argument 118 void test_return(isl::ctx ctx) in test_return() argument 134 void test_foreach(isl::ctx ctx) in test_foreach() argument 168 static void test_every(isl::ctx ctx) in test_every() argument 188 static void test_schedule_tree(isl::ctx ctx) in test_schedule_tree() argument 243 static void test_ast_build(isl::ctx ctx) in test_ast_build() argument 298 test_pointer(ctx); in main() 301 test_return(ctx); in main() 302 test_foreach(ctx); in main() 303 test_every(ctx); in main() [all …]
|
| /llvm-project-15.0.7/polly/lib/External/isl/include/isl/ |
| H A D | ctx.h | 123 #define isl_alloc(ctx,type,size) ((type *)isl_malloc_or_die(ctx, size)) argument 124 #define isl_calloc(ctx,type,size) ((type *)isl_calloc_or_die(ctx,\ argument 126 #define isl_realloc(ctx,ptr,type,size) ((type *)isl_realloc_or_die(ctx,\ argument 128 #define isl_alloc_type(ctx,type) isl_alloc(ctx,type,sizeof(type)) argument 129 #define isl_calloc_type(ctx,type) isl_calloc(ctx,type,sizeof(type)) argument 130 #define isl_realloc_type(ctx,ptr,type) isl_realloc(ctx,ptr,type,sizeof(type)) argument 131 #define isl_alloc_array(ctx,type,n) isl_alloc(ctx,type,(n)*sizeof(type)) argument 132 #define isl_calloc_array(ctx,type,n) ((type *)isl_calloc_or_die(ctx,\ argument 168 void isl_ctx_free(isl_ctx *ctx); 170 void isl_ctx_abort(isl_ctx *ctx); [all …]
|
| /llvm-project-15.0.7/mlir/unittests/TableGen/ |
| H A D | FormatTest.cpp | 17 FmtContext ctx; in TEST() local 24 FmtContext ctx; in TEST() local 31 FmtContext ctx; in TEST() local 38 FmtContext ctx; in TEST() local 45 FmtContext ctx; in TEST() local 52 FmtContext ctx; in TEST() local 59 FmtContext ctx; in TEST() local 66 FmtContext ctx; in TEST() local 77 FmtContext ctx; in TEST() local 84 FmtContext ctx; in TEST() local [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_md5.cpp | 181 body(ctx, ctx->buffer, 64); in MD5_Update() 203 body(ctx, ctx->buffer, 64); in MD5_Final() 211 ctx->buffer[56] = ctx->lo; in MD5_Final() 212 ctx->buffer[57] = ctx->lo >> 8; in MD5_Final() 213 ctx->buffer[58] = ctx->lo >> 16; in MD5_Final() 214 ctx->buffer[59] = ctx->lo >> 24; in MD5_Final() 215 ctx->buffer[60] = ctx->hi; in MD5_Final() 216 ctx->buffer[61] = ctx->hi >> 8; in MD5_Final() 217 ctx->buffer[62] = ctx->hi >> 16; in MD5_Final() 218 ctx->buffer[63] = ctx->hi >> 24; in MD5_Final() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_md5.cpp | 181 body(ctx, ctx->buffer, 64); in MD5_Update() 203 body(ctx, ctx->buffer, 64); in MD5_Final() 211 ctx->buffer[56] = ctx->lo; in MD5_Final() 212 ctx->buffer[57] = ctx->lo >> 8; in MD5_Final() 213 ctx->buffer[58] = ctx->lo >> 16; in MD5_Final() 214 ctx->buffer[59] = ctx->lo >> 24; in MD5_Final() 215 ctx->buffer[60] = ctx->hi; in MD5_Final() 216 ctx->buffer[61] = ctx->hi >> 8; in MD5_Final() 217 ctx->buffer[62] = ctx->hi >> 16; in MD5_Final() 218 ctx->buffer[63] = ctx->hi >> 24; in MD5_Final() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | swift-async-call-conv.c | 22 *ctx += 1; in async_leaf1() 27 *ctx += 2; in async_leaf2() 43 return async_leaf1(ctx); in async_branch() 45 return async_leaf2(ctx); in async_branch() 56 async_leaf1(ctx); in async_not_all_tail() 57 return async_leaf2(ctx); in async_not_all_tail() 69 return async_leaf1(ctx); in async_loop() 71 return async_leaf2(ctx); in async_loop() 89 return async_leaf1(ctx); in async_mutual_loop1() 91 return async_leaf2(ctx); in async_mutual_loop1() [all …]
|
| /llvm-project-15.0.7/mlir/test/python/ir/ |
| H A D | module.py | 19 ctx = Context() 21 assert module.context is ctx 34 ctx = Context() 48 ctx = Context() 49 loc = Location.unknown(ctx) 65 ctx = Context() 68 """, ctx) 94 ctx = Context() 96 assert ctx._get_live_module_count() == 1 134 ctx = Context() [all …]
|
| H A D | diagnostic_handler.py | 16 ctx = Context() 21 ctx = None 32 ctx = Context() 42 ctx = Context() 51 ctx = Context() 62 ctx = Context() 77 ctx = Context() 91 ctx = Context() 108 ctx = Context() 120 ctx = Context() [all …]
|
| /llvm-project-15.0.7/mlir/unittests/Interfaces/ |
| H A D | DataLayoutInterfacesTest.cpp | 57 return Base::get(ctx, entries); in get() 76 static SingleQueryType get(MLIRContext *ctx) { return Base::get(ctx); } in get() 115 static TypeNoLayout get(MLIRContext *ctx) { return Base::get(ctx); } in get() 251 MLIRContext ctx(registry); in TEST() local 272 MLIRContext ctx(registry); in TEST() local 295 MLIRContext ctx(registry); in TEST() local 321 MLIRContext ctx(registry); in TEST() local 353 MLIRContext ctx(registry); in TEST() local 384 MLIRContext ctx(registry); in TEST() local 410 MLIRContext ctx(registry); in TEST() local [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/tests/rtl/ |
| H A D | tsan_posix.cpp | 115 ctx.data = 1; in cond_thread() 120 while (ctx.data != 2) in cond_thread() 121 EXPECT_EQ(__interceptor_pthread_cond_wait(&ctx.c, &ctx.m), 0); in cond_thread() 125 ctx.data = 3; in cond_thread() 133 CondContext ctx; in TEST() local 136 ctx.data = 0; in TEST() 141 while (ctx.data != 1) in TEST() 142 EXPECT_EQ(__interceptor_pthread_cond_wait(&ctx.c, &ctx.m), 0); in TEST() 143 ctx.data = 2; in TEST() 148 while (ctx.data != 3) in TEST() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common_interceptors.inc | 457 void *ctx; 471 void *ctx; 485 void *ctx; 495 void *ctx; 505 void *ctx; 528 void *ctx; 554 void *ctx; 595 void *ctx; 617 void *ctx; 665 void *ctx; [all …]
|
| /llvm-project-15.0.7/mlir/tools/mlir-tblgen/ |
| H A D | AttrOrTypeFormatGen.cpp | 62 ctx.withSelf(self); in genPrintGuard() 63 os << tgfmt("($_self", &ctx); in genPrintGuard() 250 FmtContext ctx; in genParser() local 253 ctx.withBuilder("odsBuilder"); in genParser() 272 ctx.addSubst("_loc", "odsLoc"); in genParser() 275 &ctx); in genParser() 279 genElementParser(el, ctx, os); in genParser() 675 FmtContext ctx; in genPrinter() local 678 ctx.withBuilder("odsBuilder"); in genPrinter() 1066 if (ctx != TopLevelContext && ctx != StructDirectiveContext) { in parseParamsDirective() [all …]
|
| /llvm-project-15.0.7/mlir/test/CAPI/ |
| H A D | ir.c | 99 ctx, in makeAndDumpAdd() 785 MlirType funcInputs[2] = {mlirIndexTypeGet(ctx), mlirIntegerTypeGet(ctx, 1)}; in printBuiltinTypes() 837 mlirFloatAttrDoubleGet(ctx, mlirF64TypeGet(ctx), 2.0); in printBuiltinAttributes() 1620 mlirContextDestroy(ctx); in registerOnlyStd() 1656 mlirContextDestroy(ctx); in testBackreferences() 1727 mlirContextDestroy(ctx); in testOperands() 1767 mlirContextDestroy(ctx); in testClone() 2002 mlirContextDestroy(ctx); in testDialectRegistry() 2056 mlirContextDestroy(ctx); in testDiagnostics() 2077 if (printAffineMap(ctx)) in main() [all …]
|
| H A D | quant.c | 35 ctx, in testTypeHierarchy() 90 MlirType f32 = mlirF32TypeGet(ctx); in testAnyQuantizedType() 136 MlirType f32 = mlirF32TypeGet(ctx); in testUniformType() 165 MlirType f32 = mlirF32TypeGet(ctx); in testUniformPerAxisType() 211 ctx, in testCalibratedType() 232 testTypeHierarchy(ctx); in main() 233 testAnyQuantizedType(ctx); in main() 234 testUniformType(ctx); in main() 235 testUniformPerAxisType(ctx); in main() 236 testCalibratedType(ctx); in main() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Conversion/AsyncToLLVM/ |
| H A D | AsyncToLLVM.cpp | 88 return FunctionType::get(ctx, {}, {TokenType::get(ctx)}); in createTokenFunctionType() 99 return FunctionType::get(ctx, {i64}, {GroupType::get(ctx)}); in createGroupFunctionType() 109 return FunctionType::get(ctx, {TokenType::get(ctx)}, {}); in emplaceTokenFunctionType() 118 return FunctionType::get(ctx, {TokenType::get(ctx)}, {}); in setTokenErrorFunctionType() 128 return FunctionType::get(ctx, {TokenType::get(ctx)}, {i1}); in isTokenErrorFunctionType() 139 return FunctionType::get(ctx, {GroupType::get(ctx)}, {i1}); in isGroupErrorFunctionType() 143 return FunctionType::get(ctx, {TokenType::get(ctx)}, {}); in awaitTokenFunctionType() 152 return FunctionType::get(ctx, {GroupType::get(ctx)}, {}); in awaitGroupFunctionType() 163 return FunctionType::get(ctx, {TokenType::get(ctx), GroupType::get(ctx)}, in addTokenToGroupFunctionType() 170 return FunctionType::get(ctx, {TokenType::get(ctx), hdl, resume}, {}); in awaitTokenAndExecuteFunctionType() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/ |
| H A D | asan_interceptors.cpp | 384 void *ctx; in DEFINE_REAL() local 405 void *ctx; in INTERCEPTOR() local 424 void *ctx; in INTERCEPTOR() local 446 void *ctx; in INTERCEPTOR() local 462 void *ctx; in INTERCEPTOR() local 478 void *ctx; in INTERCEPTOR() local 491 void *ctx; in INTERCEPTOR() local 504 void *ctx; in INTERCEPTOR() local 525 void *ctx; in INTERCEPTOR() local 543 void *ctx; in INTERCEPTOR() local [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/memprof/ |
| H A D | memprof_interceptors.cpp | 57 (void)ctx; 200 void *ctx; in INTERCEPTOR() local 212 void *ctx; in INTERCEPTOR() local 225 void *ctx; in INTERCEPTOR() local 238 void *ctx; in INTERCEPTOR() local 252 void *ctx; in INTERCEPTOR() local 266 void *ctx; in INTERCEPTOR() local 276 void *ctx; in INTERCEPTOR() local 286 void *ctx; in INTERCEPTOR() local 301 void *ctx; in INTERCEPTOR() local [all …]
|
| /llvm-project-15.0.7/mlir/unittests/Dialect/Quant/ |
| H A D | QuantizationUtilsTest.cpp | 43 auto eleType = FloatType::getF32(ctx); in getTestElementsAttr() 55 auto eleType = FloatType::getF32(ctx); in getTestSparseElementsAttr() 78 MLIRContext ctx; in TEST() local 79 ctx.getOrLoadDialect<QuantizationDialect>(); in TEST() 96 MLIRContext ctx; in TEST() local 97 ctx.getOrLoadDialect<QuantizationDialect>(); in TEST() 102 &ctx, {1, 2}, {getTestFloatAttr(1.0, &ctx), getTestFloatAttr(2.0, &ctx)}); in TEST() 122 MLIRContext ctx; in TEST() local 123 ctx.getOrLoadDialect<QuantizationDialect>(); in TEST() 128 &ctx, {1, 2}, getTestFloatAttr(1.0, &ctx)); in TEST() [all …]
|