Displaying 20 results from an estimated 24 matches for "asmbackends".
Did you mean:
asmbackend
2014 Oct 31
2
[LLVMdev] TSFlags in AsmBackend
Hello LLVM,
I'd like to check TSFlags in my AsmBackend code. However AsmBackend
objects don't have a reference to MCInstrInfo, which is the only way
I've seen to reach TSFlags. A quickie grep shows that none of the
existing targets check TSFlags in their AsmBackends. Is there any
reason I shouldn't check TSFlags in AsmBackend? If not, what's the
best way to go about it?
Thanks,
-steve
2020 Jan 06
2
Encode target-abi into LLVM bitcode for LTO.
Hi all.
There are two steps in LTO codegen so the problem is how to pass ABI info
into LTO code generator.
The easier way is pass -target-abi via option to LTO codegen, but there is
linking issue when linking two bitcodes generated by different -mabi
option. (see https://reviews.llvm.org/D71387#1792169)
Usually the ABI info for a file is derived from target triple, mcpu or
-mabi, but in RISC-V,
2020 Jul 01
4
Handling far branches with fixups or ELF relocs
Hello,
I'm working on an LLVM backend for an experimental microprocessor. Work
is going on nicely, and I've until now found the answer to all my
questions directly in the LLVM source code, or in the documentation.
However, I'm having problems with the AsmBackend class and the handling
of fixups.
The processor I'm working with has a single conditional branch
instruction, JCC,
2020 Jan 06
2
Encode target-abi into LLVM bitcode for LTO.
David Blaikie <dblaikie at gmail.com> 於 2020年1月6日 週一 下午2:23寫道:
> If this is something that can vary per file in a compilation and resolve
> correctly when one object file is built with one ABI and another object
> file is built with a different ABI (that seems to be antithetical to the
> concept of "ABI" Though) - then it should be a subtarget feature.
>
> ABI is
2020 Jan 07
2
Encode target-abi into LLVM bitcode for LTO.
> On Jan 6, 2020, at 14:29, David Blaikie via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
>
>
> On Mon, Jan 6, 2020 at 5:58 AM Zakk <zakk0610 at gmail.com <mailto:zakk0610 at gmail.com>> wrote:
>
>
> David Blaikie <dblaikie at gmail.com <mailto:dblaikie at gmail.com>> 於 2020年1月6日 週一 下午2:23寫道:
> If this is something that can vary per
2012 Dec 17
0
[LLVMdev] [MC] [llvm-mc] Getting target specific information to <target>ELFObjectWriter
Eli,
Yes, SubtargetInfo is more of a container of convenience since it is available to all the assemblers. Working with the current framework it seemed the least disruptive.
I'll describe the problem again.
The Mips ABI for better or worse, uses the ELF headers e_flags extensively. The most pressing issue is the need to post the relocation model such as PIC, CPIC or non-shared. The object
2012 Dec 15
2
[LLVMdev] [MC] [llvm-mc] Getting target specific information to <target>ELFObjectWriter
On Fri, Dec 14, 2012 at 1:03 PM, Carter, Jack <jcarter at mips.com> wrote:
> Eli,
>
> This is the kind of feedback I want. I believe I have to add to the base class so it should be generally useful. I can see string being better for the value. I still am enamoured with an enumeration for the tab though: int->string. How would that be a limitation?
>
I guess that's fine,
2010 Apr 17
0
[LLVMdev] Intro to the MC Project
Hi !
> Sorry I missed responding to this email sooner.
No problem, I was not in a hurry. :)
> The approximate approach I had in mind sounds like what you describe,
Ok Cool !
> I have been meaning to do this, but won't have time for a couple weeks I
suspect.
So I will give it a try. :)
I was able to quickly hack a JITObjectWriter and I am able to execute simple
functions (with
2020 Jan 07
2
Encode target-abi into LLVM bitcode for LTO.
> On Jan 7, 2020, at 13:57, David Blaikie <dblaikie at gmail.com> wrote:
>
>
>
> On Mon, Jan 6, 2020 at 6:05 PM Daniel Sanders <daniel_l_sanders at apple.com <mailto:daniel_l_sanders at apple.com>> wrote:
>
>
>> On Jan 6, 2020, at 14:29, David Blaikie via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
2010 Apr 16
2
[LLVMdev] Intro to the MC Project
I do have an opinion, but don't have enough time to comment in much depth. The approximate approach I had in mind sounds like what you describe, though, the JITObjectWriter is the core piece, the other pieces probably fall into place as it becomes obvious if they are needed.
It should be pretty straightforward to bring up something which works for running code with no external symbols, if you
2020 Jan 08
3
Encode target-abi into LLVM bitcode for LTO.
On Tue, Jan 7, 2020 at 5:27 PM Eric Christopher <echristo at gmail.com> wrote:
>
>
> On Tue, Jan 7, 2020 at 3:18 PM Daniel Sanders via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>>
>>
>> On Jan 7, 2020, at 13:57, David Blaikie <dblaikie at gmail.com> wrote:
>>
>>
>>
>> On Mon, Jan 6, 2020 at 6:05 PM Daniel Sanders
2015 Oct 15
2
ELF object writing from assembly file
Thanks a lot Tim.
I am getting an error which says: "LLVM ERROR: unable to write nop sequence
of 0 bytes"
Is there any way that I can print out the Obj code (I mean bitstream
representation of the assembly code which is going to be placed in the ELF
file), before making any ELF file?
Cheers,
ES
On Tue, Oct 13, 2015 at 3:02 PM, Tim Northover <t.p.northover at gmail.com>
wrote:
2020 Jan 09
2
Encode target-abi into LLVM bitcode for LTO.
Right. I think that's what we ended up doing rather than a more general
attribute on the module itself.
*shrugs* Probably ok? I'd probably prefer not to have to have target code
to do the evaluation if possible, but everything is weird and an edge case
- mips abis more than some :)
-eric
On Wed, Jan 8, 2020 at 8:58 AM David Blaikie <dblaikie at gmail.com> wrote:
> Oh, I should
2020 Jan 10
2
Encode target-abi into LLVM bitcode for LTO.
I also work on the RISC-V backend, and have been doing a little work on the ELF psABI document for RISC-V.
I agree that, conceptually, the psABI choice should be in the module metadata.
Zakk, however, has discovered a phase ordering issue within LLVM that relates to this approach. The phase ordering problem is that the LTO backend is currently setup without interrogating the current module for
2010 May 12
0
[LLVMdev] MC ELF support
Hi Matt,
Awesome! This is excellent progress, and it is great to see someone
working on this.
High level comments:
(1) The order of patches is odd, to me. It would be great to start by
adding the AsmParser support, then the MCStreamer support, so that we
can have test cases in the 'llvm-mc cat' mode, where it just parses
and prints out again.
On 0001:
- What is hasRelocationAddend? It
2020 Jan 13
2
Encode target-abi into LLVM bitcode for LTO.
David Blaikie via llvm-dev <llvm-dev at lists.llvm.org> 於 2020年1月11日 週六
上午2:03寫道:
> Ah, OK - thanks for walking me through that.
>
> Fair enough, I think I understand the issue/tradeoff now - and that the
> other module level metadata don't currently influence the target
> configuration at this level?
>
>
I'm not sure, I only know that the target-abi is decided
2010 May 11
2
[LLVMdev] MC ELF support
Hi guys,
attached are a couple of work in progress patches for ELF support in the
MC module. I'm sending this email to gather some general feedback on the
code. Applying these patches doesn't get you a fully working llvm-mc
that understands ELF; it's just the ground work. I've got a couple more
small patches that fixup some places that assume Mach-O object format
which I'll
2020 Jan 15
2
Encode target-abi into LLVM bitcode for LTO.
David Blaikie <dblaikie at gmail.com> 於 2020年1月14日 週二 上午2:15寫道:
>
>
> On Mon, Jan 13, 2020 at 6:12 AM Zakk <zakk0610 at gmail.com> wrote:
>
>>
>>
>> David Blaikie via llvm-dev <llvm-dev at lists.llvm.org> 於 2020年1月11日 週六
>> 上午2:03寫道:
>>
>>> Ah, OK - thanks for walking me through that.
>>>
>>> Fair enough, I
2020 Jan 27
2
Encode target-abi into LLVM bitcode for LTO.
On Mon, Jan 20, 2020 at 8:05 AM Sam Elliott via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> To follow up on this issue:
>
> Our plan is still to encode `target-abi` into the module flags for RISC-V
> LLVM IR modules. As was pointed out earlier in this thread, the function
> lowering in Clang is slightly different for the ABIs which support hardware
> floating point.
2020 Jan 27
2
Encode target-abi into LLVM bitcode for LTO.
On Mon, Jan 27, 2020 at 3:04 PM Eric Christopher <echristo at gmail.com> wrote:
>
>
> On Mon, Jan 27, 2020 at 2:56 PM David Blaikie via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>>
>>
>> On Mon, Jan 20, 2020 at 8:05 AM Sam Elliott via llvm-dev <
>> llvm-dev at lists.llvm.org> wrote:
>>
>>> To follow up on this issue: