Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Non-standard labels"
2010 Sep 18
0
[LLVMdev] Non-standard labels
On Sep 18, 2010, at 8:14 AM, Yuri Gribov wrote:
> Hi all,
>
> I am emitting code for assembler which wants non-standard text for
> labels (not just "LABEL:"). One way would be to override all methods
> of AsmPrinter which call MCStreamer::EmitLabel but this is too
> painful. I can think of two solutions:
>
> 1) add AsmPrinter::EmitLabel which calls Streamer by
2010 Sep 18
2
[LLVMdev] Non-standard labels
Chris,
I want to emit code for target which uses non-standard assembler which
wants labels to look like
LAB nop
instead of
LAB:
I can not do this because labels are emitted by
MCAsmStreamer::EmitLabel which can not be overriden.
Best regards,
Yuri
2010 Sep 20
0
[LLVMdev] Non-standard labels
My internet is finally back. Could someone verify and submit this
patch? I have verified build, tests and unittests on X86.
On Sun, Sep 19, 2010 at 9:16 AM, Yuri Gribov <tetra2005 at googlemail.com> wrote:
>> Is this just a textual/syntactic thing? If so, you should add a bit to MCAsmInfo to indicate that this is the behavior, and MCAsmPrinter should be changed to emit labels in this
2017 Dec 27
1
Convert MachineInstr to MCInst in AsmPrinter.cpp
Hello everyone,
In the file *lib/CodeGen/AsmPrinter/AsmPrinter.cpp*, I would like to obtain
an MCInst corresponding to its MachineInstr. Can anyone tell me a way to do
that?
If that is not possible, then, I would like to know if a given MachineInstr
is an *lea *instruction and I would like to know if the symbol involved
with this lea instruction is a jump-table.
For instance, given a
2010 Sep 19
2
[LLVMdev] Non-standard labels
> Is this just a textual/syntactic thing? If so, you should add a bit to MCAsmInfo to indicate that this is the behavior, and MCAsmPrinter should be changed to emit labels in this syntax.
Thanks! This should be enough.
-Yuri
2016 Jan 21
4
Is there a reason why MCAsmStreamer class doesn't have its own .h file?
Does anybody know if there is a particular reason why MCAsmStreamer doesn't
have its own .h file?
https://github.com/llvm-mirror/llvm/blob/0e66a5f53c74056f95d178c86531d7d9cfb23da9/lib/MC/MCAsmStreamer.cpp#L41
It seems like it is a good idea to have this class declared as its own
module ( its own .cpp and .h files). That would make it easier to inherit
from it if there is a need (like in my
2011 May 23
2
[LLVMdev] Debug llc crash using bugpoint
Hi,
What is the best way to debug an llc crash using bugpoint?
I am getting the following crash that I would like to reduce
llc: /home/vadve/aggarwa4/llvm29/llvm-2.9/lib/MC/MCAsmStreamer.cpp:273:
virtual void<unnamed>::MCAsmStreamer::EmitLabel(llvm::MCSymbol*): Assertion
`Symbol->isUndefined() && "Cannot define a symbol twice!"' failed.
0 llc
2016 May 21
1
Using an MCStreamer Directly to produce an object file?
llvm-dev,
Thanks so much in advance for any help, tips, or advice you may be able
to offer me. I'm going to try to avoid the big-picture description of
the project I'm working on, and only talk about the parts that I have
trouble with / currently need to implement. -- I've been starting by
taking the source code from the "llvm-mc" tool, and working that down
into a
2010 Sep 19
0
[LLVMdev] Non-standard labels
On Sep 18, 2010, at 10:52 AM, Yuri Gribov wrote:
> Chris,
>
> I want to emit code for target which uses non-standard assembler which
> wants labels to look like
> LAB nop
> instead of
> LAB:
>
> I can not do this because labels are emitted by
> MCAsmStreamer::EmitLabel which can not be overriden.
Is this just a textual/syntactic thing? If so, you should add a
2011 May 23
0
[LLVMdev] Debug llc crash using bugpoint
Do something like this:
bugpoint -run-llc <bitcode file> --tool-args -- <llc arguments>
Cameron
On May 23, 2011, at 1:33 PM, Arushi Aggarwal wrote:
> Hi,
>
> What is the best way to debug an llc crash using bugpoint?
>
> I am getting the following crash that I would like to reduce
>
> llc: /home/vadve/aggarwa4/llvm29/llvm-2.9/lib/MC/MCAsmStreamer.cpp:273:
2016 Jan 14
2
RFC: Extend UBSan with qsort checks
On Thu, Jan 14, 2016 at 3:43 AM, Paul Pluzhnikov <ppluzhnikov at google.com> wrote:
> On Wed, Jan 13, 2016 at 4:17 PM, Kostya Serebryany <kcc at google.com> wrote:
>> Inviting Paul to the party (he wrote the libstdc++ sort checker).
>>
>> On Tue, Jan 12, 2016 at 11:09 PM, Yury Gribov <y.gribov at samsung.com> wrote:
>>>
>>> On 01/13/2016
2010 May 07
3
[LLVMdev] AsmPrinter behavior
I compile these two lines in llc
@tst1 = internal global [4 x i8] zeroinitializer;
@tst2 = internal global [4 x i8] [i8 0, i8 1, i8 2, i8 3];
@tst1 is emited via MCStreamer::EmitCommonSymbol
while the other is emited via MCStreamer::EmitLabel followed by
MCStreamer::EmitBytes
from what I can tell, only symbols with common linkage should me emitted
by MCStreamer::EmitCommonSymbol,
is this the
2011 Nov 30
2
[LLVMdev] Problem using a label to a MachineBasicBlock
Hi all,
I think that I came somewhat closer to a solution for splitting a
MachineBasicBlock for a PSEUDO_CALL_R instruction and having a label to the new MBB:
For following piece of code:
---
typedef int callme_t(int a, int b);
callme_t* c01;
int foo(int a, int b)
{
return c01(a,b); // MachineBasicBlock will be split at call instruction
}
---
I have initially following correspondence:
BB1
2014 Dec 20
2
[LLVMdev] [cfe-dev] ubsan - active member check for unions
On Thu, Dec 18, 2014 at 11:05 PM, Yury Gribov <y.gribov at samsung.com> wrote:
>
> On 12/19/2014 01:14 AM, Nick Lewycky wrote:
>
>> On 12/16/2014 02:43 AM, Yury Gribov wrote:
>>
>>> On 12/15/2014 10:24 PM, Ismail Pazarbasi wrote:
>>>
>>>> s.d = 42.0;
>>>> if (s.l > 100) // fire here
>>>>
>>>
2016 Jan 14
2
RFC: Extend UBSan with qsort checks
Inviting Paul to the party (he wrote the libstdc++ sort checker
<https://gcc.gnu.org/svn/gcc/branches/google/gcc-4_9/libstdc++-v3/include/bits/stl_algo.h>
).
On Tue, Jan 12, 2016 at 11:09 PM, Yury Gribov <y.gribov at samsung.com> wrote:
> On 01/13/2016 10:08 AM, Yury Gribov wrote:
>
>> On 01/13/2016 09:57 AM, Kostya Serebryany wrote:
>>
>>> On Tue, Jan 12,
2016 May 23
0
Using an MCStreamer Directly to produce an object file?
2012 Nov 03
1
[LLVMdev] symbols for exception handling
I thought of a simpler way to do this which is no more of a hack than
the way labels are noramally output.
Create an EmitDebugLabel and then in MCAsminfo, add another variable for
the suffix for debug labels which can by default be just ":". Then for
Mips I can change it to "=."
On 11/03/2012 01:40 PM, Reed Kotler wrote:
> I'm working on a patch for this problem
2016 Jan 13
2
RFC: Extend UBSan with qsort checks
On 01/13/2016 09:57 AM, Kostya Serebryany wrote:
> On Tue, Jan 12, 2016 at 10:28 PM, Yury Gribov <y.gribov at samsung.com> wrote:
>
>> On 01/13/2016 03:10 AM, Kostya Serebryany wrote:
>>
>>> FTR, here is one way to implement this in the library:
>>>
>>> https://gcc.gnu.org/svn/gcc/branches/google/gcc-4_9/libstdc++-v3/include/bits/stl_algo.h
2010 May 07
1
[LLVMdev] AsmPrinter behavior
On May 7, 2010, at 12:39 AM, Nathan Jeffords wrote:
> On Fri, May 7, 2010 at 12:03 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On May 6, 2010, at 10:01 PM, Nathan Jeffords wrote:
>
> > I compile these two lines in llc
> >
> > @tst1 = internal global [4 x i8] zeroinitializer;
> > @tst2 = internal global [4 x i8] [i8 0, i8 1, i8 2, i8 3];
>
2012 Dec 16
1
[LLVMdev] test-suite
On 12/15/2012 12:53 PM, Chandler Carruth wrote:
> On Sat, Dec 15, 2012 at 12:33 PM, Reed Kotler <rkotler at mips.com
> <mailto:rkotler at mips.com>> wrote:
>
> I have an approved target independent putback and i've run all
> that we have at Mips as well as on x86 " make TEST=simple"
>
> Is there anything else that is easy to run that I