search for: global_str_ptr

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

2013 Aug 19
4
[LLVMdev] Generating GetElementPtr inlined in a function argument list programmatically
...g code snippet with LLVM 3.2. Is there a way to generate "inlined" GetElementPtr instructions when calling a function just like the first example programmatically? -------------------------------------------------------------------BasicBlock* bb = (omitted)IRBuilder<> irb(bb);Value* global_str_ptr = irb.CreateGlobalString(bbn, "bbname");std::vector<Value*> indices;indices.push_back(ConstantInt::get(IntegerType::getInt32Ty(getGlobalContext()), 0));indices.push_back(ConstantInt::get(IntegerType::getInt32Ty(getGlobalContext()), 0));GetElementPtrInst* gep_str = GetElementPtrInst:...
2013 Aug 19
0
[LLVMdev] Generating GetElementPtr inlined in a function argument list programmatically
...Is there a way to generate "inlined" GetElementPtr instructions when calling a function just like the first example programmatically? > > ------------------------------------------------------------------- > BasicBlock* bb = (omitted) > IRBuilder<> irb(bb); > Value* global_str_ptr = irb.CreateGlobalString(bbn, "bbname"); > std::vector<Value*> indices; > indices.push_back(ConstantInt::get(IntegerType::getInt32Ty(getGlobalContext()), 0)); > indices.push_back(ConstantInt::get(IntegerType::getInt32Ty(getGlobalContext()), 0)); > GetElementPtrInst* gep_...