[Mesa-dev] [PATCH 14/17] ac: add i32_1 convenience member to ac_llvm_context
Connor Abbott
connora at valvesoftware.com
Fri Jun 9 23:48:52 UTC 2017
From: Connor Abbott <cwabbott0 at gmail.com>
Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
---
src/amd/common/ac_llvm_build.c | 1 +
src/amd/common/ac_llvm_build.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c
index 8145bcb..efbeb65 100644
--- a/src/amd/common/ac_llvm_build.c
+++ b/src/amd/common/ac_llvm_build.c
@@ -65,6 +65,7 @@ ac_llvm_context_init(struct ac_llvm_context *ctx, LLVMContextRef context)
ctx->v16i8 = LLVMVectorType(ctx->i8, 16);
ctx->i32_0 = LLVMConstInt(ctx->i32, 0, 0);
+ ctx->i32_1 = LLVMConstInt(ctx->i32, 1, 0);
ctx->range_md_kind = LLVMGetMDKindIDInContext(ctx->context,
"range", 5);
diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h
index 839ed7d..8258b21 100644
--- a/src/amd/common/ac_llvm_build.h
+++ b/src/amd/common/ac_llvm_build.h
@@ -48,6 +48,7 @@ struct ac_llvm_context {
LLVMTypeRef v16i8;
LLVMValueRef i32_0;
+ LLVMValueRef i32_1;
unsigned range_md_kind;
unsigned invariant_load_md_kind;
--
2.9.4
More information about the mesa-dev
mailing list