Displaying 2 results from an estimated 2 matches for "gvar_data".
Did you mean:
gir_data
2019 Feb 22
2
Create the GlobalVariable which have extern in one header file
...ng issue with creating a GlobalVariable. I already have an extern for that global in a header file to use it in the following way
extern const void* DATA_TABLE[];
And with a LLVM PASS, I am trying to create this array with the same name and with initializer. So, I have following:
GlobalVariable *gvar_data = new GlobalVariable(
M, blockItems->getType(), true, GlobalValue::CommonLinkage,
blockItems, "DATA_TABLE");
gvar_data->setAlignment(16);
gvar_data->setSection("data_section");
gvar_data->addAttribute(llvm::Attribute::OptimizeNone);
I am not sure if I am usi...
2019 Feb 22
1
Create the GlobalVariable which have extern in one header file
...setSection("data_section");
gNew->addAttribute(llvm::Attribute::OptimizeNone);
On Feb 22 2019, at 12:02 am, Tim Northover <t.p.northover at gmail.com> wrote:
On Thu, 21 Feb 2019 at 18:42, Mustakimur Khandaker via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
GlobalVariable *gvar_data = new GlobalVariable(
M, blockItems->getType(), true, GlobalValue::CommonLinkage,
blockItems, "DATA_TABLE");
gvar_data->setAlignment(16);
gvar_data->setSection("data_section");
gvar_data->addAttribute(llvm::Attribute::OptimizeNone);
I am not sure if I am using the c...