Displaying 2 results from an estimated 2 matches for "main_with_3_glob".
2016 Aug 04
4
help please: how to sort the contents of a "SymbolTableListTraits<GlobalVariable>"?
...p" [and commented out the relevant deletion in
"llvm/include/llvm/IR/GlobalVariable.h"] -----
GlobalVariable::GlobalVariable(const GlobalVariable& GV) : GlobalVariable( GV.getValueType(),
GV.isConstant(), GV.getLinkage() ) { // copy ctor
copyAttributesFrom(&GV);
}
main_with_3_globals.c
---------------------
int foo;
char bar;
long baz;
int main(){return foo;}
----- error dump from compiler driver -----
> ../build_003/bin/clang main_with_3_globals.c -O3
Abe was here: max. profitable alignment: 16
Abe was here: found a global value that DOES have a name [“fo...
2016 Jul 27
2
help please: how to sort the contents of a "SymbolTableListTraits<GlobalVariable>"?
Dear all,
In the process of trying to add optimization for better layout of global variables, I have run
up against a roadblock: I don`t seem to be able to sort the contents of a
"SymbolTableListTraits<GlobalVariable>" -- or even swap two elements in that list -- without
causing LLVM to crash.
I have tried writing a comparator class and then using "llvm::iplist<