params[0] = data;
params[3] = offset;
ac_emit_llvm_intrinsic(&ctx->ac, store_name,
- LLVMVoidTypeInContext(ctx->context), params, 6, 0);
+ ctx->voidt, params, 6, 0);
}
}
LLVMConstReal(ctx->f32, -1.0f),
ctx->f32zero, "");
ac_emit_llvm_intrinsic(&ctx->ac, "llvm.AMDGPU.kill",
- LLVMVoidTypeInContext(ctx->context),
- &cond, 1, 0);
+ ctx->voidt,
+ &cond, 1, 0);
}
static LLVMValueRef
case nir_intrinsic_discard:
ctx->shader_info->fs.can_discard = true;
ac_emit_llvm_intrinsic(&ctx->ac, "llvm.AMDGPU.kilp",
- LLVMVoidTypeInContext(ctx->context),
- NULL, 0, 0);
+ ctx->voidt,
+ NULL, 0, 0);
break;
case nir_intrinsic_discard_if:
emit_discard_if(ctx, instr);
args, sizeof(args));
} else {
ac_emit_llvm_intrinsic(&ctx->ac,
- "llvm.SI.export",
- LLVMVoidTypeInContext(ctx->context),
- args, 9, 0);
+ "llvm.SI.export",
+ ctx->voidt,
+ args, 9, 0);
}
}
if (pos_idx == num_pos_exports)
pos_args[i][2] = ctx->i32one;
ac_emit_llvm_intrinsic(&ctx->ac,
- "llvm.SI.export",
- LLVMVoidTypeInContext(ctx->context),
- pos_args[i], 9, 0);
+ "llvm.SI.export",
+ ctx->voidt,
+ pos_args[i], 9, 0);
}
ctx->shader_info->vs.pos_exports = num_pos_exports;