amd/common: Add gep helper for pointer increment.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
@@ -923,6 +923,14 @@ ac_build_fs_interp_mov(struct ac_llvm_context *ctx,
|
|||||||
ctx->f32, args, 4, AC_FUNC_ATTR_READNONE);
|
ctx->f32, args, 4, AC_FUNC_ATTR_READNONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LLVMValueRef
|
||||||
|
ac_build_gep_ptr(struct ac_llvm_context *ctx,
|
||||||
|
LLVMValueRef base_ptr,
|
||||||
|
LLVMValueRef index)
|
||||||
|
{
|
||||||
|
return LLVMBuildGEP(ctx->builder, base_ptr, &index, 1, "");
|
||||||
|
}
|
||||||
|
|
||||||
LLVMValueRef
|
LLVMValueRef
|
||||||
ac_build_gep0(struct ac_llvm_context *ctx,
|
ac_build_gep0(struct ac_llvm_context *ctx,
|
||||||
LLVMValueRef base_ptr,
|
LLVMValueRef base_ptr,
|
||||||
|
@@ -223,6 +223,11 @@ ac_build_fs_interp_mov(struct ac_llvm_context *ctx,
|
|||||||
LLVMValueRef attr_number,
|
LLVMValueRef attr_number,
|
||||||
LLVMValueRef params);
|
LLVMValueRef params);
|
||||||
|
|
||||||
|
LLVMValueRef
|
||||||
|
ac_build_gep_ptr(struct ac_llvm_context *ctx,
|
||||||
|
LLVMValueRef base_ptr,
|
||||||
|
LLVMValueRef index);
|
||||||
|
|
||||||
LLVMValueRef
|
LLVMValueRef
|
||||||
ac_build_gep0(struct ac_llvm_context *ctx,
|
ac_build_gep0(struct ac_llvm_context *ctx,
|
||||||
LLVMValueRef base_ptr,
|
LLVMValueRef base_ptr,
|
||||||
|
Reference in New Issue
Block a user