diff options
author | Samuel Pitoiset <[email protected]> | 2019-03-21 10:14:29 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-03-21 12:13:05 +0100 |
commit | ff11c9dcc74d28340cf0f042ebd0fdf11709e44a (patch) | |
tree | 171acd1d93365f716295071e8d38d9b4caee8f91 /src/amd/common | |
parent | 427a6fee439b2df96edc813c56572169385772a6 (diff) |
ac: add f16_0 and f16_1 constants
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r-- | src/amd/common/ac_llvm_build.c | 2 | ||||
-rw-r--r-- | src/amd/common/ac_llvm_build.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index b5bb399eef1..a9c6b4af958 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -95,6 +95,8 @@ ac_llvm_context_init(struct ac_llvm_context *ctx, 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->f16_0 = LLVMConstReal(ctx->f16, 0.0); + ctx->f16_1 = LLVMConstReal(ctx->f16, 1.0); ctx->f32_0 = LLVMConstReal(ctx->f32, 0.0); ctx->f32_1 = LLVMConstReal(ctx->f32, 1.0); ctx->f64_0 = LLVMConstReal(ctx->f64, 0.0); diff --git a/src/amd/common/ac_llvm_build.h b/src/amd/common/ac_llvm_build.h index aa6e913c6c6..9151c743bed 100644 --- a/src/amd/common/ac_llvm_build.h +++ b/src/amd/common/ac_llvm_build.h @@ -82,6 +82,8 @@ struct ac_llvm_context { LLVMValueRef i32_1; LLVMValueRef i64_0; LLVMValueRef i64_1; + LLVMValueRef f16_0; + LLVMValueRef f16_1; LLVMValueRef f32_0; LLVMValueRef f32_1; LLVMValueRef f64_0; |