search for: gvar_int32_a

Displaying 1 result from an estimated 1 matches for "gvar_int32_a".

Did you mean: gvar_int32_x
2010 May 13
2
[LLVMdev] Handling of thread_local globals by llc -march=cpp
...uses=2] %tmp = load i32* @a ; <i32> [#uses=1] store i32 %tmp, i32* %retval %0 = load i32* %retval ; <i32> [#uses=1] ret i32 %0 } Within the cpp file the relevant code to create and initialise the global is: GlobalVariable* gvar_int32_a = new GlobalVariable(/*Module=*/*mod, /*Type=*/IntegerType::get(mod->getContext(), 32), /*isConstant=*/false, /*Linkage=*/GlobalValue::ExternalLinkage, /*Initializer=*/0, // has initializer, specified below /*Name=*/"a"); gvar_int32_a->setAlignment(4); // Constant...