search for: llvmir_build

Displaying 1 result from an estimated 1 matches for "llvmir_build".

Did you mean: llvm_build
2016 Apr 17
2
Problems with GEP and CallInst
...8*) #0 All the types match (even if the assertion condition makes me think they shouldn’t), am I doing something wrong with GEP? here’s the code that translates the AST Literal into LLVM IR and creates the GEP (the return value will be passed to the Callee): llvm::Value *ast::StringLiteral::build(llvmir_builder *builder) { TypeRef *strtype = evalType(); TypeRef *chrtype = strtype->getType()->getPointedType(); llvm::ArrayType *arty = llvm::ArrayType::get(chrtype->getIRType(), val.length()+1); if (!strcst) { strcst = new llvm::GlobalVariable(*container,...