From: Nicolai Hähnle <nicolai.haeh...@amd.com>

---
 src/amd/common/ac_llvm_build.c | 4 ++++
 src/amd/common/ac_llvm_build.h | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c
index 237e929..ec69cf0 100644
--- a/src/amd/common/ac_llvm_build.c
+++ b/src/amd/common/ac_llvm_build.c
@@ -49,22 +49,26 @@ ac_llvm_context_init(struct ac_llvm_context *ctx, 
LLVMContextRef context)
 {
        LLVMValueRef args[1];
 
        ctx->context = context;
        ctx->module = NULL;
        ctx->builder = NULL;
 
        ctx->voidt = LLVMVoidTypeInContext(ctx->context);
        ctx->i1 = LLVMInt1TypeInContext(ctx->context);
        ctx->i8 = LLVMInt8TypeInContext(ctx->context);
+       ctx->i16 = LLVMIntTypeInContext(ctx->context, 16);
        ctx->i32 = LLVMIntTypeInContext(ctx->context, 32);
+       ctx->i64 = LLVMIntTypeInContext(ctx->context, 64);
+       ctx->f16 = LLVMHalfTypeInContext(ctx->context);
        ctx->f32 = LLVMFloatTypeInContext(ctx->context);
+       ctx->f64 = LLVMDoubleTypeInContext(ctx->context);
        ctx->v4i32 = LLVMVectorType(ctx->i32, 4);
        ctx->v4f32 = LLVMVectorType(ctx->f32, 4);
        ctx->v16i8 = LLVMVectorType(ctx->i8, 16);
 
        ctx->range_md_kind = LLVMGetMDKindIDInContext(ctx->context,
                                                     "range", 5);
 
        ctx->invariant_load_md_kind = LLVMGetMDKindIDInContext(ctx->context,
                                                               
"invariant.load", 14);
 
diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h
index ebb78fb..a6b7372 100644
--- a/src/amd/common/ac_llvm_build.h
+++ b/src/amd/common/ac_llvm_build.h
@@ -33,22 +33,26 @@ extern "C" {
 #endif
 
 struct ac_llvm_context {
        LLVMContextRef context;
        LLVMModuleRef module;
        LLVMBuilderRef builder;
 
        LLVMTypeRef voidt;
        LLVMTypeRef i1;
        LLVMTypeRef i8;
+       LLVMTypeRef i16;
        LLVMTypeRef i32;
+       LLVMTypeRef i64;
+       LLVMTypeRef f16;
        LLVMTypeRef f32;
+       LLVMTypeRef f64;
        LLVMTypeRef v4i32;
        LLVMTypeRef v4f32;
        LLVMTypeRef v16i8;
 
        unsigned range_md_kind;
        unsigned invariant_load_md_kind;
        unsigned uniform_md_kind;
        unsigned fpmath_md_kind;
        LLVMValueRef fpmath_md_2p5_ulp;
        LLVMValueRef empty_md;
-- 
2.9.3

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to