mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-04 09:44:40 +00:00
[llvm-14-fixes] use specific LLVMConst* codepaths for LLVM 14
This commit is contained in:
@@ -449,31 +449,6 @@ gb_internal LLVMValueRef llvm_const_insert_value(lbModule *m, LLVMValueRef agg,
|
||||
}
|
||||
|
||||
|
||||
gb_internal LLVMValueRef llvm_const_shl(lbModule *m, LLVMValueRef a, LLVMValueRef b) {
|
||||
LLVMValueRef res = LLVMBuildShl(m->const_dummy_builder, a, b, "");
|
||||
GB_ASSERT(LLVMIsConstant(res));
|
||||
return res;
|
||||
}
|
||||
|
||||
gb_internal LLVMValueRef llvm_const_lshr(lbModule *m, LLVMValueRef a, LLVMValueRef b) {
|
||||
LLVMValueRef res = LLVMBuildLShr(m->const_dummy_builder, a, b, "");
|
||||
GB_ASSERT(LLVMIsConstant(res));
|
||||
return res;
|
||||
}
|
||||
|
||||
gb_internal LLVMValueRef llvm_const_or(lbModule *m, LLVMValueRef a, LLVMValueRef b) {
|
||||
LLVMValueRef res = LLVMBuildOr(m->const_dummy_builder, a, b, "");
|
||||
GB_ASSERT(LLVMIsConstant(res));
|
||||
return res;
|
||||
}
|
||||
|
||||
gb_internal LLVMValueRef llvm_const_zext(lbModule *m, LLVMValueRef a, LLVMTypeRef b) {
|
||||
LLVMValueRef res = LLVMBuildZExt(m->const_dummy_builder, a, b, "");
|
||||
GB_ASSERT(LLVMIsConstant(res));
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
gb_internal LLVMValueRef llvm_cstring(lbModule *m, String const &str) {
|
||||
|
||||
Reference in New Issue
Block a user