search for: gep_str

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

Did you mean: gep_ptr
2013 Aug 19
4
[LLVMdev] Generating GetElementPtr inlined in a function argument list programmatically
...rb(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::CreateInBounds(global_str_ptr, indices, "bbname", bb->getFirstNonPHI());args.push_back(gep_str);args.push_back(ConstantInt::get(IntegerType::getInt32Ty(getGlobalContext()), size));CallInst* inc_call = CallInst::Create(func_incrementFaultSitesEnumerated, args, &quot...
2013 Aug 19
0
[LLVMdev] Generating GetElementPtr inlined in a function argument list programmatically
..._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::CreateInBounds(global_str_ptr, > indices, > "bbname", bb->getFirstNonPHI()); > args.push_back(gep_str); > args.push_back(ConstantInt::get(IntegerType::getInt32Ty(getGlobalContext()), > size)); > CallInst* inc_call = CallInst::Create(func_increm...