Displaying 3 results from an estimated 3 matches for "emitconstantvalueonly".
2008 Aug 14
1
[LLVMdev] Proposed modification of AsmPrinter::EmitConstantValueOnly()
I have a problem (bug 2672) in which I have a static initializer that
contains a GEP. The GEP itself has arguments that do casts and another GEP.
This fails in EmitConstantValueOnly() because the GEP arguments are not
recognized as constant (link time) expressions.
It looks to me that a proper solution could be to make
EmitConstantValueOnly() return its constant value and call it for each
argument of the GEP which will then be passed to getIndexedOffset().
Does this sound...
2006 Dec 08
0
[LLVMdev] [patch] print ".weak" directive
...weak symbol is added to a constant pool.
>
> I need something similar to it in order to bootstrap gcc on ARM.
--- lib/CodeGen/AsmPrinter.cpp 7 Dec 2006 01:30:31 -0000 1.120
+++ lib/CodeGen/AsmPrinter.cpp 7 Dec 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";
+ }
+...
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: