codegen does signed, unsigned, and floating point math
This commit is contained in:
@@ -185,6 +185,10 @@ unsigned LLVMZigEncoding_DW_ATE_signed(void) {
|
||||
return dwarf::DW_ATE_signed;
|
||||
}
|
||||
|
||||
unsigned LLVMZigEncoding_DW_ATE_float(void) {
|
||||
return dwarf::DW_ATE_float;
|
||||
}
|
||||
|
||||
unsigned LLVMZigLang_DW_LANG_C99(void) {
|
||||
return dwarf::DW_LANG_C99;
|
||||
}
|
||||
@@ -322,6 +326,16 @@ LLVMZigDILocation *LLVMZigGetDebugLoc(unsigned line, unsigned col, LLVMZigDIScop
|
||||
return reinterpret_cast<LLVMZigDILocation*>(debug_loc.get());
|
||||
}
|
||||
|
||||
void LLVMZigSetFastMath(LLVMBuilderRef builder_wrapped, bool on_state) {
|
||||
if (on_state) {
|
||||
FastMathFlags fmf;
|
||||
fmf.setUnsafeAlgebra();
|
||||
unwrap(builder_wrapped)->SetFastMathFlags(fmf);
|
||||
} else {
|
||||
unwrap(builder_wrapped)->clearFastMathFlags();
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------
|
||||
|
||||
enum FloatAbi {
|
||||
|
||||
Reference in New Issue
Block a user