search for: allowquotesinname

Displaying 9 results from an estimated 9 matches for "allowquotesinname".

2013 Mar 29
2
[LLVMdev] Print Global Prefix Issue
...mentation, I set GlobalPrefix = "%"; because my assembler needs this to avoid name collisions. Now, whenever a global symbol (be it a label, mbb operand ,etc.) gets printed, it is encapsulated in quotes. With other chars than '%' everything is okay... I also explicitly set AllowQuotesInName = false (which should be the default). Here is a shortened output example: .file "main.c" .text .global "%main" .align 4 .type "%main", at function "%main": [...] .Ltmp0: .size &...
2013 Mar 29
0
[LLVMdev] Print Global Prefix Issue
...quot;%"; > > > because my assembler needs this to avoid name collisions. > Now, whenever a global symbol (be it a label, mbb operand ,etc.) gets > printed, it is encapsulated in quotes. > With other chars than '%' everything is okay... > > I also explicitly set AllowQuotesInName = false (which should be the > default). > > Here is a shortened output example: > > .file "main.c" > .text > .global "%main" > .align 4 > .type "%main", at function > "%main&qu...
2012 Oct 02
2
[LLVMdev] [patch] set AssemblerDialect
...00644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -453,6 +453,9 @@ namespace llvm { unsigned getAssemblerDialect() const { return AssemblerDialect; } + void setAssemblerDialect(unsigned dialect) { + AssemblerDialect = dialect; + } bool doesAllowQuotesInName() const { return AllowQuotesInName; }
2011 Nov 26
1
[LLVMdev] Where does LLVM mangle characters from llvm-ir names while generating native code?
...bly because the Darwin assembler supports quoted symbols (i.e. you can enclose an identifier in quotes). Maybe Joe is right, and you should change the LLVM mangler to not mangle '?' chars (if the assembler can handle it). Or maybe we should see if GAS supports quoted symbols (MCAsmInfo::doesAllowQuotesInName()). > > Chip So setting AllowQuotesInName=true gets the correct names in the output. However, it breaks MinGW. The issue is of course that MCAsmInfo mixes both assembler and object file format capabilities. Allowing quoted names has nothing to do with COFF ;/. So it seems we need a new AsmIn...
2012 Oct 02
0
[LLVMdev] [patch] set AssemblerDialect
...gt; +++ b/include/llvm/MC/MCAsmInfo.h > @@ -453,6 +453,9 @@ namespace llvm { > unsigned getAssemblerDialect() const { > return AssemblerDialect; > } > + void setAssemblerDialect(unsigned dialect) { > + AssemblerDialect = dialect; > + } > bool doesAllowQuotesInName() const { > return AllowQuotesInName; > } > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
2012 Oct 03
1
[LLVMdev] [patch] set AssemblerDialect
...nfo.h >> @@ -453,6 +453,9 @@ namespace llvm { >> unsigned getAssemblerDialect() const { >> return AssemblerDialect; >> } >> + void setAssemblerDialect(unsigned dialect) { >> + AssemblerDialect = dialect; >> + } >> bool doesAllowQuotesInName() const { >> return AllowQuotesInName; >> } >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
2012 Apr 02
0
[LLVMdev] [PATCH] Output UTF-8-encoded characters as identifier characters into assembly by default.
...+ return AllowUTF8; + } const char *getZeroDirective() const { return ZeroDirective; } diff --git a/lib/MC/MCAsmInfo.cpp b/lib/MC/MCAsmInfo.cpp index 582d21f..8286c1d 100644 --- a/lib/MC/MCAsmInfo.cpp +++ b/lib/MC/MCAsmInfo.cpp @@ -49,6 +49,7 @@ MCAsmInfo::MCAsmInfo() { AllowQuotesInName = false; AllowNameToStartWithDigit = false; AllowPeriodsInName = true; + AllowUTF8 = true; ZeroDirective = "\t.zero\t"; AsciiDirective = "\t.ascii\t"; AscizDirective = "\t.asciz\t"; diff --git a/lib/Target/Mangler.cpp b/lib/Target/Mangler.cpp index 53ad...
2011 Nov 25
0
[LLVMdev] Where does LLVM mangle characters from llvm-ir names while generating native code?
...bly because the Darwin assembler supports quoted symbols (i.e. you can enclose an identifier in quotes). Maybe Joe is right, and you should change the LLVM mangler to not mangle '?' chars (if the assembler can handle it). Or maybe we should see if GAS supports quoted symbols (MCAsmInfo::doesAllowQuotesInName()). Chip > > Sent from my iPhone > > On Nov 25, 2011, at 2:15 PM, Charles Davis <cdavis at mymail.mines.edu> wrote: > >> >> On Nov 25, 2011, at 8:39 AM, Michael Spencer wrote: >> >>> So I was taking a look at Microsoft C++ ABI support while on...
2011 Nov 25
2
[LLVMdev] Where does LLVM mangle characters from llvm-ir names while generating native code?
In the case I posted I had removed that line, however, you still get the __3F_ in the generated assembly with it. Sent from my iPhone On Nov 25, 2011, at 2:15 PM, Charles Davis <cdavis at mymail.mines.edu> wrote: > > On Nov 25, 2011, at 8:39 AM, Michael Spencer wrote: > >> So I was taking a look at Microsoft C++ ABI support while on vacation, >> and ran into a major