Displaying 20 results from an estimated 22 matches for "femb".
Did you mean:
feb
2016 Jun 03
6
[RFC] Embedded bitcode and related upstream (Part II)
...embed bitcode option. If you want more background, you can read the previous RFC (http://lists.llvm.org/pipermail/llvm-dev/2016-February/094851.html <http://lists.llvm.org/pipermail/llvm-dev/2016-February/094851.html>). This is part II of the discussion.
Current Status:
A basic version of -fembed-bitcode option is upstreamed and functioning.
You can use -fembed-bitcode={off, all, bitcode, marker} option to control what gets embedded in the final object file output:
off: default, nothing gets embedded.
all: optimized bitcode and command line options gets embedded in the object file.
bitcod...
2016 Feb 03
4
[RFC] Embedding Bitcode in Object Files
...archive which is embedded in the output. The archive also
contains all the information that is needed to rebuild the linked binary. All
compilation and linking stage can be replayed to generated the final binary.
There are mainly two parts we would like to upstream first:
1. Clang Driver:
Adding -fembed-bitcode option. When this new option is used, it will split the
compilation into 2 stages. The first stage runs the frontend and all the
optimization passes, and the second stage embeds the bitcode from the first
stage then runs the CodeGen passes. There is also a -fembed-bitcode-marker
option t...
2016 Feb 05
2
[RFC] Embedding Bitcode in Object Files
...-line including the -fdebug-prefix-map argument gets stored in the output too, then you still have a problem.
I don't think we need any path in the command line section. We only record the command-line options that will affect CodeGen. See my example in one of the preview reply:
> $ clang -fembed-bitcode -O0 test.c -c -###
> "clang" "-cc1" (...lots of options...) "-o" "test.bc" "-x" "c" "test.c" <--- First stage
> "clang" "-cc1" "-triple" "x86_64-apple-macosx10.11.0" &...
2015 Oct 19
2
Enabling bitcode for iOS
Hi,
What is the proper way of enabling bitcode on iOS platform?
I pass -fembed-bitcode in CFLAGS but it looks like it does not work on assembly files.
Thanks,
Pavel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/opus/attachments/20151019/ab393204/attachment.htm
2019 Jan 20
2
Difference when compiling human readable IR vs bitcode with clang frontend
...ection "llvm.metadata"
>> @llvm.compiler.used = appending global [1 x i8*] [i8* bitcast (void ()*
>> @foo to i8*)], section "llvm.metadata"
>>
>>
>> # Compile IR -> Obj directly.
>> clang -cc1 -triple x86_64-apple-macosx10.13.0 -emit-obj -fembed-
>> 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-macosx1...
2019 Jan 18
2
Difference when compiling human readable IR vs bitcode with clang frontend
...obal [1 x i8*] [i8* bitcast (void ()* @foo to i8*)], section "llvm.metadata"
@llvm.compiler.used = appending global [1 x i8*] [i8* bitcast (void ()* @foo to i8*)], section "llvm.metadata"
# Compile IR -> Obj directly.
clang -cc1 -triple x86_64-apple-macosx10.13.0 -emit-obj -fembed-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 te...
2016 Jun 13
5
[RFC] Embedded bitcode and related upstream (Part II)
...ng these flags with LTO because they are likely to be dropped in the process. That is my next thing to do if someone reviews my patch and agrees that is right thing to do.
>
> 2. Assembly input handling:
> This is a workaround to allow source code written in assembly to work with "-fembed-bitcode" options. When compiling assembly source code with "-fembed-bitcode", clang-as creates an empty section "__LLVM, __asm" in the object file. That is just a way to distinguish object files compiled from assembly source from those compiled from higher level source co...
2020 Aug 28
4
End-to-end -fembed-bitcode .llvmbc and .llvmcmd
...optimization passes, as well as the command line options needed for
>> later compiling that IR to the same native object it was compiled to
>> originally (with the same compiler).
>>
>> Here's what I don't understand: say you have a.o and b.o compiled with
>> -fembed-bitcode=all. They are linked into a binary called my_binary. How do
>> you re-create the corresponding IR for modules a and b (let's call them
>> a.bc and b.bc), and their corresponding command lines? From what I can
>> tell, the linker just concatenates the IR for a and b i...
2020 Aug 28
2
End-to-end -fembed-bitcode .llvmbc and .llvmcmd
...e passing it to LLVM's optimization passes, as well as the command line options needed for later compiling that IR to the same native object it was compiled to originally (with the same compiler).
>>
>> Here's what I don't understand: say you have a.o and b.o compiled with -fembed-bitcode=all. They are linked into a binary called my_binary. How do you re-create the corresponding IR for modules a and b (let's call them a.bc and b.bc), and their corresponding command lines? From what I can tell, the linker just concatenates the IR for a and b in my_binary's .llvmbc,...
2016 Feb 03
2
[cfe-dev] [RFC] Embedding Bitcode in Object Files
...also
>> contains all the information that is needed to rebuild the linked binary. All
>> compilation and linking stage can be replayed to generated the final binary.
>>
>> There are mainly two parts we would like to upstream first:
>> 1. Clang Driver:
>> Adding -fembed-bitcode option. When this new option is used, it will split the
>> compilation into 2 stages. The first stage runs the frontend and all the
>> optimization passes, and the second stage embeds the bitcode from the first
>> stage then runs the CodeGen passes. There is also a -fem...
2016 Feb 06
2
[RFC] Embedding Bitcode in Object Files
...On Fri, Feb 5, 2016 at 6:06 PM, Steven Wu <stevenwu at apple.com<mailto:stevenwu at apple.com>> wrote:
I don't think we need any path in the command line section. We only record the command-line options that will affect CodeGen. See my example in one of the preview reply:
$ clang -fembed-bitcode -O0 test.c -c -###
"clang" "-cc1" (...lots of options...) "-o" "test.bc" "-x" "c" "test.c" <--- First stage
"clang" "-cc1" "-triple" "x86_64-apple-macosx10.11.0" "-emit...
2020 Aug 15
2
Adding bitcode to an existing MachO object file
This is a silly question, but I am in a situation where I need to build x86
and arm assembly sources for some sources while the rest will be built with
C. I do know that just adding `-fembed-bitcode` to a C sources would embed
bitcode, but doing the same for the assembly files will not do that (at
least, it will add the 1-byte `_LLVM,__asm` section, but not the
`__LLVM,__bitcode` section). Furthermore, I do need the final output to
contain bitcode for all files used.
So, my question...
2016 Feb 06
5
[RFC] Embedding Bitcode in Object Files
...On Fri, Feb 5, 2016 at 6:06 PM, Steven Wu <stevenwu at apple.com<mailto:stevenwu at apple.com>> wrote:
I don't think we need any path in the command line section. We only record the command-line options that will affect CodeGen. See my example in one of the preview reply:
$ clang -fembed-bitcode -O0 test.c -c -###
"clang" "-cc1" (...lots of options...) "-o" "test.bc" "-x" "c" "test.c" <--- First stage
"clang" "-cc1" "-triple" "x86_64-apple-macosx10.11.0" "-emit...
2019 Jan 31
3
[RFC] Support embedding bitcodes in LLD with LTO
...y my understanding. Do you want to keep original bitcode
> files in the output executable when doing LTO, so that the resulting
> executable contains both compiled bitcode (which is in native machine
> instructions) and original bitcode files?
Exactly! Kind of analogous to what `clang -fembed-bitcode -c` does, but
for executables.
>
> Did you try embedding bitcode files into existing ELF files using
> objcopy or linker option `--format=binary`?
Yes, that is the alternative. However, having support in the linker for
that would require less tweaking of exiting build syste...
2017 Sep 18
1
llvm-link: Missing Dwarf DIE references
.../RangeReplaceableCollection+IndexSet.bc \
<mypath>/DreamPreviewHeaderReusableView.bc \
<mypath>/Rendering.bc
########################
########################
xcrun \
--sdk iphoneos \
<mypath>/Xcode_9.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ \
-fembed-bitcode \
<mypath>/iOS_APP.bc \
-arch arm64 \
-O0 \
-c \
-o <mypath>/iOS_APP.bc.o
########################
########################
llvm-dwarfdump -verbose -verify small.o > small.o.dwarfdump
Any insights would be appreciated. Input bitcode files are attached.
Thanks,
Jack
-----...
2019 Jan 31
2
[RFC] Support embedding bitcodes in LLD with LTO
...riginal bitcode
>> > files in the output executable when doing LTO, so that the resulting
>> > executable contains both compiled bitcode (which is in native machine
>> > instructions) and original bitcode files?
>>
>> Exactly! Kind of analogous to what `clang -fembed-bitcode -c` does, but
>> for executables.
>>
>> >
>> > Did you try embedding bitcode files into existing ELF files using
>> > objcopy or linker option `--format=binary`?
>>
>> Yes, that is the alternative. However, having support in the linker fo...
2015 Oct 19
0
Enabling bitcode for iOS
Pavel Punsky <Pavel.Punsky at oovoo.com> wrote:
> What is the proper way of enabling bitcode on iOS platform?
> I pass -fembed-bitcode in CFLAGS but it looks like it does not work
> on assembly files.
You cannot use bitcode with assembly. It may be possible if someone
manually translates the asm into LLVM IR and then figures out how to
embed it directly in a .S file, but that seems like a ridiculous
amount o...
2017 Sep 20
0
llvm-link: Missing Dwarf DIE references
.../RangeReplaceableCollection+IndexSet.bc \
<mypath>/DreamPreviewHeaderReusableView.bc \
<mypath>/Rendering.bc
########################
########################
xcrun \
--sdk iphoneos \
<mypath>/Xcode_9.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ \
-fembed-bitcode \
<mypath>/iOS_APP.bc \
-arch arm64 \
-O0 \
-c \
-o <mypath>/iOS_APP.bc.o
########################
########################
llvm-dwarfdump -verbose -verify small.o > small.o.dwarfdump
Any insights would be appreciated. Input bitcode files are attached.
Thanks,
Jack
____...
2019 Jan 28
2
[RFC] Support embedding bitcodes in LLD with LTO
Hi everybody!
I'm Josef and I'm working at Oracle Labs on Sulong [1,2], the LLVM IR
execution engine in GraalVM [3]. In addition to executing bare bitcode
files, Sulong also accepts ELF files with embedded bitcode sections.
Therefore, it would be great if LLD in (Full)LTO mode would support
embedding bitcode sections to the resulting object file. Is that
something that would be
2016 Oct 27
1
BoF: Shipping Software as LLVM IR (@Upcoming Dev Mtg)
Hi
I am late to the party. Here is my personal take of the topic:
* Do you ship software as IR today? What lessons have you learned?
Yes. We accept AppStore submission in bitcode (LLVM IR). The core function in clang is upstreamed and you can look up the related code path triggered by -fembed-bitcode option.
* Challenges of shipping software as IR
Compatibility: We are trying to enhance the bitcode compatibility tests but most of them only covers the bitcode reader. But the compatibility issue goes way beyond that. It is hard to keep the semantics of the original program while the to...