Displaying 6 results from an estimated 6 matches for "pr122".
Did you mean:
pr123
2004 Jun 17
0
[LLVMdev] generating instructions with embedded ConstantExprs from within LLVM
...ConstantExpr::getGetElementPtr( (Constant*) str, indices);
Sorry for responding twice. As soon as I sent that I realized the
problem. The problem is that the cast on the bottom line here is masking
the bug. In particular, you can't use the address of global variables as
constants (yet: see PR122). This is definitely a bug in LLVM that you
can't do this, but we do have a gross work-around. In particular, to get
the address of a global value as a constant, use the ConstantPointerRef
class:
Constant *strconst = ConstantPointerRef::get(str);
Constant *gep = ConstantExpr::getGetElementPt...
2004 Jun 17
4
[LLVMdev] generating instructions with embedded ConstantExprs from within LLVM
How is this done? Everything logical I have tried has failed, here was one attempt:
Constant *C = (Constant*) ConstantArray::get(inst2string(I)); //fucnction defined elsewhere
//generates a correct Global string
GlobalVariable *str = new GlobalVariable(C->getType(), true,
GlobalValue::InternalLinkage,
C, mkStrName( strNumber++ ), &M);
std::vector<Value*>
2004 Jul 18
1
[LLVMdev] ConstantPointerRef Changes
LLVMers,
The long awaited conclusion of bug 122 (VMCore cleanups) is very near. I
have just committed all the changes to rid LLVM of the ConstantPointerRef
abomination. This class no longer exists. Just use GlobalValue,
GlobalVariable or Function directly.
The changes pass 100% of Feature and Regression tests.
Two minor discrepancies against the Programs tests were detected but these
were
2004 Jul 12
0
LLVM July Status Update
...the official
#llvm IRC Channel on irc.oftc.net. If you're running Mozilla and have
chatzilla installed, you can join by clicking here:
irc://irc.oftc.net/llvm
Anyway, here's the usual dose of good stuff people have been working on:
High-Level Changes:
1. Reid is continuing to work on PR122. In particular, the LLVM Type
class now no longer derives from the Value class, which is a huge
cleanup and a big fix for LLVM!
2. Brian and Misha finished conversion of the LLVM Command Guide to perl
POD format, which provides HTML and *man* pages for all of the LLVM
tools. Get y...
2003 Nov 17
0
[LLVMdev] Question about structure of SymbolTable
Brian,
Global symbols including new named types are named in the global symbol
table. In addition each function contains a local symbol table naming
local items, including temporary variables.
I'm busy documenting all this, but I'm also busy writing a code generator
for my architecture, so haven't gotten enough through everything to
completely document the bytecode language.
2003 Nov 17
3
[LLVMdev] Question about structure of SymbolTable
I was trying to look through the SymbolTable code for LLVM. What does
the SymbolTable for a Module contain? Is it just GlobalVariables and
Functions? How are program constants and static variables declared
within functions handled? When I said program constants, I meant
things like strings (e.g., char* foo = "Hello world\n";). Thanks in
advance.
Sincerely,
Brian
Brian M.