Displaying 2 results from an estimated 2 matches for "bc_bc".
Did you mean:
bbc
2019 Jan 18
2
Difference when compiling human readable IR vs bitcode with clang frontend
...3.0 -emit-llvm-bc -fblocks -fencode-extended-block-signature -x ir test.ll -o test.bc
clang -cc1 -triple x86_64-apple-macosx10.13.0 -emit-obj -fembed-bitcode=all -x ir test.bc -o test_bc.o
# Extract and disassemble embedded bitcode from both scenarios.
segedit test_bc.o -extract __LLVM __bitcode bc_bc.bc
segedit test_ll.o -extract __LLVM __bitcode ll_bc.bc
llvm-dis bc_bc.bc
llvm-dis ll_bc.bc
# Diff both IR files to show that only bc_bc.ll contains "llvm.compiler.used"
diff bc_bc.ll ll_bc.ll
- Dennis Frett
-------------- next part --------------
A non-text attachment was scrubbed...
N...
2019 Jan 20
2
Difference when compiling human readable IR vs bitcode with clang frontend
...block-signature -x ir test.ll -o test.bc
>> clang -cc1 -triple x86_64-apple-macosx10.13.0 -emit-obj -fembed-
>> bitcode=all -x ir test.bc -o test_bc.o
>>
>> # Extract and disassemble embedded bitcode from both scenarios.
>> segedit test_bc.o -extract __LLVM __bitcode bc_bc.bc
>> segedit test_ll.o -extract __LLVM __bitcode ll_bc.bc
>> llvm-dis bc_bc.bc
>> llvm-dis ll_bc.bc
>>
>> # Diff both IR files to show that only bc_bc.ll contains
>> "llvm.compiler.used"
>> diff bc_bc.ll ll_bc.ll
>>
>> - Dennis Fret...