Displaying 6 results from an estimated 6 matches for "weakrefdirect".
2008 Mar 23
1
[LLVMdev] a quick typo in the ARM LLVM backend
....cpp (working copy)
@@ -49,7 +49,7 @@
PrivateGlobalPrefix = "L";
BSSSection = 0; // no BSS section.
ZeroFillDirective = "\t.zerofill\t"; // Uses .zerofill
- SetDirective = "\t.set";
+ SetDirective = "\t.set\t";
WeakRefDirective = "\t.weak_reference\t";
HiddenDirective = "\t.private_extern\t";
ProtectedDirective = NULL;
I unfortunately don't have the code that died anymore (it was a couple months ago, and I'm unfortunately just now getting on this mailing list to report the issue),...
2012 Mar 14
2
[LLVMdev] How to set constant pool section?
..."\t.word\t";
Data64bitsDirective = 0; // .xword is only supported by V9.
ZeroDirective = "\t.skip\t";
CommentString = "!";
HasLEB128 = true;
SupportsDebugInformation = true;
SunStyleELFSectionSwitchSyntax = true;
UsesELFSectionDirectiveForBSS = true;
WeakRefDirective = "\t.weak\t";
PrivateGlobalPrefix = ".L";
}
But I can not find in Sparc, or any other backend code to set
ConstantPoolSection.
I tried in my backend deriving MCAsmInfo, but it seems, that
ConstantPoolSection is not member of MCAsmInfo.
I really need in my backend value...
2013 Aug 16
0
[LLVMdev] How do I set WeakDefDirective for a target?
Hi,
I'm a little confused over the use of WeakDefDirective & getWeakDefDirective()
as it seems to be used differently to WeakRefDirective & getWeakRefDirective().
WeakDefDirective seems to be a boolean, used by AsmPrinter::EmitLinkage(), to decide if special stuff needs to be done.
As I just want "weak", I should leave WeakDefDirective as null.
Is this right?
It would be nice if there was a additional hasWeakDefDi...
2006 Dec 08
0
[LLVMdev] [patch] print ".weak" directive
...2006 13:00:17 -0000
@@ -640,6 +640,13 @@
printDataDirective(type);
EmitConstantValueOnly(CV);
O << "\n";
+ if (const GlobalValue *GV = dyn_cast<GlobalValue>(CV)) {
+ if (GV->hasWeakLinkage() || GV->hasExternalWeakLinkage()) {
+ O << TAI->getWeakRefDirective();
+ EmitConstantValueOnly(CV);
+ O << "\n";
+ }
+ }
}
The approach looks good, but why do you need both 'hasWeak' and
'hasExternalWeak' here? It seems that this should only check the external
weak case.
I think what we really want is for the...
2006 Dec 07
2
[LLVMdev] [patch] print ".weak" directive
The attached patch makes the ASM printer print the ".weak" directive
when a weak symbol is added to a constant pool.
I need something similar to it in order to bootstrap gcc on ARM.
Any comments?
Best Regards,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.patch
Type: text/x-patch
Size: 1816 bytes
Desc: not available
URL:
2013 Sep 25
1
[LLVMdev] arm64 / iOS support
...".code\t32";
+ SupportsDebugInformation = true;
+ ExceptionsType = ExceptionHandling::DwarfCFI;
+
+ /*Data16bitsDirective = "\t.hword\t";
+ Data32bitsDirective = "\t.word\t";
+ Data64bitsDirective = "\t.xword\t";
+
+ UseDataRegionDirectives = true;
+
+ WeakRefDirective = "\t.weak\t";
+
+ HasLEB128 = true;
+ SupportsDebugInformation = true;
+
+ // Exceptions handling
+ ExceptionsType = ExceptionHandling::DwarfCFI;*/
+}
+
+const MCExpr *AArch64MachOMCAsmInfo::getExprForPersonalitySymbol(
+ const MCSymbol *Sym, unsigned Encoding, MCStreamer &...