search for: getint1ty

Displaying 16 results from an estimated 16 matches for "getint1ty".

Did you mean: getint16ty
2013 Jan 11
2
[LLVMdev] Make a comparation with IR builder
...ode: void *visit(integer_c *symbol) { int64_t value = GET_CVALUE(int64, symbol); if (typeid(*currentType) == typeid(get_datatype_info_c::bool_type_name)) { std::cout << "Creating integer: " << value << std::endl; return (void *)ConstantInt::get(Type::getInt1Ty(getGlobalContext()), value, false); } return (void *)ConstantInt::get(Type::getInt16Ty(getGlobalContext()), value, false); } void *visit(symbolic_variable_c *symbol) { std::string varName; AllocaInst *alloc; varName = get_var_name_c::get_name(symbol->var_name)->value; alloc =...
2009 Sep 18
3
[LLVMdev] compiling java frontend
...‘Int16Ty’ is not a member of ‘llvm::Type’ PNetLib.cpp:706: error: ‘Int32Ty’ is not a member of ‘llvm::Type’ There are several other errors on the same form. When inspecting the source code of llvm::Type I do not see any member variables with those names, but I see member functions on the form 'getInt1Ty(LLVMContext &C)' where LLVMContextImpl have member variables with those names. Do you know how to solve this problem? thanks, Andreas On Thu, Sep 17, 2009 at 4:22 PM, Chris Lattner <clattner at apple.com> wrote: > > On Sep 17, 2009, at 4:17 PM, Andreas Saebjoernsen wrote: &g...
2020 Jul 16
2
BitcodeReader.cpp bug under LTO
...nd>, <ty><val1>, <ty><val2> If "ty" here is a vector type and "cond" is a forward reference, LLVM uses i1 as the placeholder type of "cond" if it cannot find "cond" in ValueList, as the code follows: Type *SelectorTy = Type::getInt1Ty(Context); // The selector might be an i1 or an <n x i1> // Get the type from the ValueList before getting a forward ref. if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) if (Value *V = ValueList[Record[0]]) if (SelectorTy != V->getType())...
2012 Jul 02
1
[LLVMdev] Intrinsic::getDeclaration causing dump() segfault
...r the first time, and have no idea what I am doing incorrectly. In actual code, I would be wanting to call the memcpy intrinsic eventually, of course. int main(void) { Module *module = new Module("testmod", getGlobalContext()); FunctionType *ft = FunctionType::get( Type::getInt1Ty(getGlobalContext()), false); Function *func = Function::Create(ft, Function::ExternalLinkage, "", module); BasicBlock *bb = BasicBlock::Create(getGlobalContext(), "entry", func); builder.SetInsertPoint(bb); builder.CreateRet(...
2013 Jan 11
2
[LLVMdev] Make a comparation with IR builder
...GET_CVALUE(int64, symbol); > if (typeid(*currentType) == > typeid(get_datatype_info_c::bool_type_name)) { > std::cout << "Creating integer: " << value << std::endl; > return (void > *)ConstantInt::get(Type::getInt1Ty(getGlobalContext()), value, false); > } > return (void > *)ConstantInt::get(Type::getInt16Ty(getGlobalContext()), value, > false); > } > > void *visit(symbolic_variable_c *symbol) { > std::string varName; > AllocaInst *a...
2013 Jan 11
0
[LLVMdev] Make a comparation with IR builder
...int64_t value = GET_CVALUE(int64, symbol); > if (typeid(*currentType) == typeid(get_datatype_info_c::**bool_type_name)) > { > std::cout << "Creating integer: " << value << std::endl; > return (void *)ConstantInt::get(Type::**getInt1Ty(getGlobalContext()), > value, false); > } > return (void *)ConstantInt::get(Type::** > getInt16Ty(getGlobalContext())**, value, false); > } > > void *visit(symbolic_variable_c *symbol) { > std::string varName; > AllocaInst *alloc; > > varName =...
2020 Jul 20
2
BitcodeReader.cpp bug under LTO
...nd>, <ty><val1>, <ty><val2> If "ty" here is a vector type and "cond" is a forward reference, LLVM uses i1 as the placeholder type of "cond" if it cannot find "cond" in ValueList, as the code follows: Type *SelectorTy = Type::getInt1Ty(Context); // The selector might be an i1 or an <n x i1> // Get the type from the ValueList before getting a forward ref. if (VectorType *VTy = dyn_cast<VectorType>(CurTy)) if (Value *V = ValueList[Record[0]]) if (SelectorTy != V->getType())...
2009 Sep 18
0
[LLVMdev] compiling java frontend
...of ‘llvm::Type’ > PNetLib.cpp:706: error: ‘Int32Ty’ is not a member of ‘llvm::Type’ > > There are several other errors on the same form. When inspecting the > source code of llvm::Type I do not see any member variables with those > names, but I see member functions on the form 'getInt1Ty(LLVMContext > &C)' where LLVMContextImpl have member variables with those names. Do > you know how to solve this problem? > > thanks, > Andreas > > > On Thu, Sep 17, 2009 at 4:22 PM, Chris Lattner <clattner at apple.com > <mailto:clattner at apple.com>...
2013 Jan 11
0
[LLVMdev] Make a comparation with IR builder
...GET_CVALUE(int64, symbol); >> if (typeid(*currentType) == >> typeid(get_datatype_info_c::bool_type_name)) { >> std::cout << "Creating integer: " << value << std::endl; >> return (void >> *)ConstantInt::get(Type::getInt1Ty(getGlobalContext()), value, false); >> } >> return (void >> *)ConstantInt::get(Type::getInt16Ty(getGlobalContext()), value, false); >> } >> >> void *visit(symbolic_variable_c *symbol) { >> std::string varName; >> AllocaInst *alloc;...
2012 Sep 26
0
[LLVMdev] [PATCH / PROPOSAL] bitcode encoding that is ~15% smaller for large bitcode files...
...> unsigned ModuleValueListSize = ValueList.size(); ... > @@ -2260,8 +2275,10 @@ bool BitcodeReader::ParseFunctionBody(Function *F) { > } > else { > BasicBlock *FalseDest = getBasicBlock(Record[1]); > - Value *Cond = getFnValueByID(Record[2], Type::getInt1Ty(Context)); > - if (FalseDest == 0 || Cond == 0) > + Value *Cond; > + if (getValueConst(Record, 2, > + NextValueNo, Type::getInt1Ty(Context), Cond) || > + FalseDest == 0 || Cond == 0) This seems rather ugly and complicated......
2012 Sep 26
9
[LLVMdev] [PATCH / PROPOSAL] bitcode encoding that is ~15% smaller for large bitcode files...
Hi all, I've been looking into how to make llvm bitcode files smaller. There is one simple change that appears to shrink linked bitcode files by about 15%. See this spreadsheet for some rough data: https://docs.google.com/spreadsheet/ccc?key=0AjRrJHQc4_bddEtJdjdIek5fMDdIdFFIZldZXzdWa0E The change is in how operand ids are encoded in bitcode files. Rather than use an "absolute
2009 Sep 17
0
[LLVMdev] compiling java frontend
On Sep 17, 2009, at 4:17 PM, Andreas Saebjoernsen wrote: > I am trying to compile the Java frontend in > https:/llvm.org/svn/llvm-project/java/trunk > If there are another preferred Java frontend available, and it is > suited for translating Java bytecode to LLVM bytecode, I'd be happy > to use that frontend instead. That is really old and out of date, I'm sure it
2015 Sep 18
2
GlobalOPT and sections
...ng attributes from the original one. Consider this one: http://llvm.org/doxygen/GlobalOpt_8cpp_source.html static bool TryToShrinkGlobalToBoolean(GlobalVariable *GV, Constant *OtherVal) { ... // Create the new global, initializing it to false. GlobalVariable *NewGV = new GlobalVariable(Type::getInt1Ty(GV->getContext()), false, GlobalValue::InternalLinkage, ConstantInt::getFalse(GV->getContext()), GV->getName()+&quo...
2009 Sep 17
2
[LLVMdev] compiling java frontend
I am trying to compile the Java frontend in https:/ llvm.org/svn/llvm-project/java/trunk If there are another preferred Java frontend available, and it is suited for translating Java bytecode to LLVM bytecode, I'd be happy to use that frontend instead. thanks, Andreas On Thu, Sep 17, 2009 at 4:03 PM, Chris Lattner <clattner at apple.com> wrote: > > On Sep 17, 2009, at 3:59
2010 Feb 07
3
[LLVMdev] Help with Mac OS X 10.6.2 build
..."llvm::User::operator new(unsigned long, unsigned int)", referenced from: BinaryExprAST::Codegen() in ccHkdHVT.o CallExprAST::Codegen() in ccHkdHVT.o PrototypeAST::Codegen() in ccHkdHVT.o FunctionAST::Codegen() in ccHkdHVT.o "llvm::Type::getInt1Ty(llvm::LLVMContext&)", referenced from: BinaryExprAST::Codegen() in ccHkdHVT.o BinaryExprAST::Codegen() in ccHkdHVT.o "llvm::ConstantExpr::getAdd(llvm::Constant*, llvm::Constant*)", referenced from: BinaryExprAST::Codegen() in ccHkdHVT.o "...
2010 Feb 07
0
[LLVMdev] Help with Mac OS X 10.6.2 build
...w(unsigned long, unsigned int)", referenced from: > BinaryExprAST::Codegen() in ccHkdHVT.o > CallExprAST::Codegen() in ccHkdHVT.o > PrototypeAST::Codegen() in ccHkdHVT.o > FunctionAST::Codegen() in ccHkdHVT.o > "llvm::Type::getInt1Ty(llvm::LLVMContext&)", referenced from: > BinaryExprAST::Codegen() in ccHkdHVT.o > BinaryExprAST::Codegen() in ccHkdHVT.o > "llvm::ConstantExpr::getAdd(llvm::Constant*, llvm::Constant*)", > referenced from: > BinaryExprAST::Codegen(...