search for: const_int32_12

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

Did you mean: const_int32_172
2017 Apr 08
2
Getting a pointer to a i8 from a global variable that holds a constant string
...lvm::GlobalVariable(m_module, type, true, llvm::GlobalValue::PrivateLinkage, nullptr, ".str"); var->setAlignment(1);; llvm::Constant* c = llvm::ConstantDataArray::getString(m_context, str); var->setInitializer(c); The part below is the one I have problems with: llvm::ConstantInt* const_int32_12 = llvm::ConstantInt::get(m_context, llvm::APInt(32, llvm::StringRef("0"), 10)); std::vector<llvm::Constant*> const_ptr_14_indices; const_ptr_14_indices.push_back(const_int32_12); const_ptr_14_indices.push_back(const_int32_12); return llvm::ConstantExpr::getGetElementPtr(nullptr,c, c...
2011 Apr 19
4
[LLVMdev] llvm-gcc
...have installed llvm-gcc 4.5 i get all the times a wrong bc file as output, because when i try to execute it with lli it says to me invalid signature. 2 - for (Module::iterator a=M.begin(),b=M.end();a!=b;++a) { for (Function::iterator i = a->begin(), e = a->end(); i != e; ++i){ new StoreInst(const_int32_12, gvar_int32_x, false, label_entry); // normally label entry would be the end of the basic bloc i } } what would be the value of label entry to make the instruction inserted at the end of the basic bloc when i have tried this: Instruction* label_entry = i->begin(); new StoreInst(const_int32_12, g...