search for: test_bc

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

2019 Jan 18
2
Difference when compiling human readable IR vs bitcode with clang frontend
...mbed-bitcode=all -x ir test.ll -o test_ll.o # Compile IR -> BC -> Obj. clang -cc1 -triple x86_64-apple-macosx10.13.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"...
2019 Jan 20
2
Difference when compiling human readable IR vs bitcode with clang frontend
...t;> # Compile IR -> BC -> Obj. >> clang -cc1 -triple x86_64-apple-macosx10.13.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 fi...