Displaying 1 result from an estimated 1 matches for "glovalvariable".
Did you mean:
globalvariable
2005 Jan 06
1
[LLVMdev] Folding cast of a global address to boolean
...this transformation from happening. In the meantime we avoid folding
// any cast of an external symbol.
if (!GV->isExternal())
return ConstantBool::True;
This particular transformation is quite important for me because I have
some symbols which are either ConstantPointerNull or a GlovalVariable
depending on which context the program is compiled in. This is used to
implement a kind of conditional compilation, and I'm relying on the
constant folding to remove branches in my code. I tried to change the
linkage type of the GlobalValue, but that's not what the isExternal()
functio...