search for: const_ptr_7

Displaying 2 results from an estimated 2 matches for "const_ptr_7".

Did you mean: const_ptr_5
2012 Sep 05
1
[LLVMdev] Calling a function with a pointer to a global char array as argument
...gt;getType(), true, GlobalValue::InternalLinkage, fname, "fBloc"); Function Call With the Global: std::vector<Constant*> const_ptr_7_indices; ConstantInt* const_int32_8 = ConstantInt::get(getGlobalContext(), APInt(32, StringRef("0"), 10)); const_ptr_7_indices.push_back(const_int32_8); const_ptr_7_indices.push_back(const_int32_8); Constant* const_ptr_7 = ConstantExpr::getGetElementPtr(fname, const_ptr_7_indices);...
2012 Jun 17
3
[LLVMdev] BlockAddress instruction is copied instead of cloned during module link?
.../*Initializer=*/0, // has initializer, specified below /*Name=*/"switch.bbs"); // Constant Definitions std::vector<Constant*> const_array_5_elems; Constant* const_ptr_6 = BlockAddress::get(label_switch_body_begin); const_array_5_elems.push_back(const_ptr_6); Constant* const_ptr_7 = BlI have a module having the blockaddress instruction. When I link it into another module and delete the original, blockaddress disappears and is replaced by inttoptr (i32 1 to i8*). Please compile and run the attached program to see the demo of this problem. Right after linking modules, blo...