summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_build.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-01-14 10:06:36 +1100
committerTimothy Arceri <[email protected]>2018-01-14 11:40:03 +1100
commit38876c88d1e61d9ec489547dc51ac2026aabddc1 (patch)
tree6c409336a720ca36873fd285c892364ae788032b /src/amd/common/ac_llvm_build.c
parent741b21b713f0e9fd7f8df802164120e0d8486d7b (diff)
ac: add i64_0 and i64_1 to llvm build context
These will be used in the following patch. Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_build.c')
-rw-r--r--src/amd/common/ac_llvm_build.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c
index f0a1788eaf2..3467bba693e 100644
--- a/src/amd/common/ac_llvm_build.c
+++ b/src/amd/common/ac_llvm_build.c
@@ -76,6 +76,8 @@ ac_llvm_context_init(struct ac_llvm_context *ctx, LLVMContextRef context,
ctx->i32_0 = LLVMConstInt(ctx->i32, 0, false);
ctx->i32_1 = LLVMConstInt(ctx->i32, 1, false);
+ ctx->i64_0 = LLVMConstInt(ctx->i64, 0, false);
+ ctx->i64_1 = LLVMConstInt(ctx->i64, 1, false);
ctx->f32_0 = LLVMConstReal(ctx->f32, 0.0);
ctx->f32_1 = LLVMConstReal(ctx->f32, 1.0);
ctx->f64_0 = LLVMConstReal(ctx->f64, 0.0);