search for: librustc_codegen_llvm

Displaying 2 results from an estimated 2 matches for "librustc_codegen_llvm".

2018 Nov 11
3
A stage2 build causes changes to libllvm impacting program using it (exemple: rustc)
...fffeedd8 "src/main.rs", Directory=0x555555b3dd10 "$HOME/hello_world") at /usr/lib/llvm-7/include/llvm/ADT/StringRef.h:85 #6 0x00007ffff501d39e in rustc_codegen_llvm::debuginfo::metadata::compile_unit_metadata (tcx=..., codegen_unit_name=..., debug_context=0x7ffffffeeeb0) at librustc_codegen_llvm/debuginfo/metadata.rs:859 Disabling the debug generation for rustc fixes the issue (thanks to Ximin Luo for the investigation). Why idea how to workaround this issue ? Unfortunately, because rustc needs rustc to build itself, I cannot check if a simple recompilation fixes it or not. Cheers, S
2020 Aug 07
4
Saturating float-to-int casts
I have encountered a need for float-to-int casts that saturate to min/max when the value is out of the range of the target type. It seems that there is no intrinsic to do this, currently, but on IRC it was pointed out that a patch [1] has been proposed to implement this functionality in exactly the way that I was looking for. It looks like the discussion has died out but I was hoping maybe to