Lines Matching defs:context
54 /* Initialize module-independent parts of the context.
64 ctx->context = LLVMContextCreate();
66 LLVMContextSetOpaquePointers(ctx->context, false);
75 ctx->module = ac_create_module(compiler->tm, ctx->context);
76 ctx->builder = ac_create_builder(ctx->context, float_mode);
78 ctx->voidt = LLVMVoidTypeInContext(ctx->context);
79 ctx->i1 = LLVMInt1TypeInContext(ctx->context);
80 ctx->i8 = LLVMInt8TypeInContext(ctx->context);
81 ctx->i16 = LLVMIntTypeInContext(ctx->context, 16);
82 ctx->i32 = LLVMIntTypeInContext(ctx->context, 32);
83 ctx->i64 = LLVMIntTypeInContext(ctx->context, 64);
84 ctx->i128 = LLVMIntTypeInContext(ctx->context, 128);
86 ctx->f16 = LLVMHalfTypeInContext(ctx->context);
87 ctx->f32 = LLVMFloatTypeInContext(ctx->context);
88 ctx->f64 = LLVMDoubleTypeInContext(ctx->context);
100 ctx->iN_wavemask = LLVMIntTypeInContext(ctx->context, ctx->wave_size);
101 ctx->iN_ballotmask = LLVMIntTypeInContext(ctx->context, ballot_mask_bits);
123 ctx->range_md_kind = LLVMGetMDKindIDInContext(ctx->context, "range", 5);
125 ctx->invariant_load_md_kind = LLVMGetMDKindIDInContext(ctx->context, "invariant.load", 14);
127 ctx->uniform_md_kind = LLVMGetMDKindIDInContext(ctx->context, "amdgpu.uniform", 14);
129 ctx->empty_md = LLVMMDNodeInContext(ctx->context, NULL, 0);
314 ac_add_func_attributes(ctx->context, function, attrib_mask);
319 ac_add_func_attributes(ctx->context, call, attrib_mask);
1606 LLVMTypeRef dst_type = LLVMIntTypeInContext(ctx->context, dst_bits);
1643 LLVMTypeRef i10 = LLVMIntTypeInContext(ctx->context, 10);
1644 LLVMTypeRef i2 = LLVMIntTypeInContext(ctx->context, 2);
1761 LLVMContextRef context = LLVMGetTypeContext(type);
1765 range_md = LLVMMDNodeInContext(context, md_args, 2);
2183 ctx->context, (LLVMTypeRef[]){data_type, ctx->i32}, 2, false);
2892 return LLVMInsertBasicBlockInContext(ctx->context, flow->next_block, name);
2896 return LLVMAppendBasicBlockInContext(ctx->context, main_fn, name);
3010 LLVMBuilderRef first_builder = LLVMCreateBuilderInContext(ac->context);
4544 LLVMAppendBasicBlockInContext(ctx->context, main_function, "main_body");
4554 ac_add_function_attr(ctx->context, main_function, i + 1, AC_FUNC_ATTR_INREG);
4557 ac_add_function_attr(ctx->context, main_function, i + 1, AC_FUNC_ATTR_NOALIAS);