[Mesa-dev] [PATCH 12/17] ac: add i64 type to ac_llvm_context
Connor Abbott
connora at valvesoftware.com
Fri Jun 9 23:48:50 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 c4cf7ce..472a1b8 100644
--- a/src/amd/common/ac_llvm_build.c
+++ b/src/amd/common/ac_llvm_build.c
@@ -59,6 +59,7 @@ ac_llvm_context_init(struct ac_llvm_context *ctx, LLVMContextRef context)
ctx->i8 = LLVMInt8TypeInContext(ctx->context);
ctx->i32 = LLVMIntTypeInContext(ctx->context, 32);
ctx->f32 = LLVMFloatTypeInContext(ctx->context);
+ ctx->i64 = LLVMIntTypeInContext(ctx->context, 64);
ctx->v4i32 = LLVMVectorType(ctx->i32, 4);
ctx->v4f32 = LLVMVectorType(ctx->f32, 4);
ctx->v16i8 = LLVMVectorType(ctx->i8, 16);
diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h
index ab7c86c7..cd03c95 100644
--- a/src/amd/common/ac_llvm_build.h
+++ b/src/amd/common/ac_llvm_build.h
@@ -42,6 +42,7 @@ struct ac_llvm_context {
LLVMTypeRef i8;
LLVMTypeRef i32;
LLVMTypeRef f32;
+ LLVMTypeRef i64;
LLVMTypeRef v4i32;
LLVMTypeRef v4f32;
LLVMTypeRef v16i8;
--
2.9.4
More information about the mesa-dev
mailing list