search for: patypehold

Displaying 20 results from an estimated 83 matches for "patypehold".

Did you mean: patypeholder
2008 Feb 25
2
[LLVMdev] small patch to add an assert to PATypeHolder
Hello, I ran into an issue with the ocaml bindings where PATypeHolder was getting a null pointer, which eventually caused a segfault. This patch copies what PATypeHandle does and adds the assert in the PATypeHolder::addRef method. Also, I'm using git's gateway to subversion to track llvm and send this patch. The patch applies fine according to my tests, bu...
2009 Jul 10
0
[LLVMdev] void llvm::PATypeHolder::addRef(): Assertion `Ty && "Type Holder has a null type!"' failed.
Hi, I am using current SVN and in the last week or so, something causing the following assertion failure has changed. void llvm::PATypeHolder::addRef(): Assertion `Ty && "Type Holder has a null type!"' failed. The corresponding stack trace is: #0 0x000000339ec332f5 in raise () from /lib64/libc.so.6 #1 0x000000339ec34b20 in abort () from /lib64/libc.so.6 #2 0x000000339ec2c2fa in __assert_fail () from /lib64/li...
2018 Aug 25
3
PATypeHolder, refineAbstractTypeTo(), addTypeName not found
...java/trunk/lib/Compiler/Resolver.cpp, But some class/function of it is not present in my source code due to replacement of this function in newer llvm verion. Can someone please suggest me the alternative approach of these function in latest llvm version. Here are those classes and functions : 1) PATypeHolder 2) refineAbstractTypeTo() 3) addTypeName() 4) getLayoutType() 5) getInterfaceIndex() 6) OpaqueType::get() Many thanks in advance. With Regards, Ratnesh Tiwari -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments...
2005 Mar 08
0
[LLVMdev] Recursive Types using the llvm support library
...> you make a Recursive type by passing in a pointer to the type you are > constucting. > > An example where something really simple like the line below was output > would be perfect. > > %struct.linked_list = type { %struct.linked_list*, %sbyte* } Use something like this: PATypeHolder StructTy = OpaqueType::get(); std::vector<const Type*> Elts; Elts.push_back(PointerType::get(StructTy)); Elts.push_back(PointerType::get(Type::SByteTy)); StructType *NewSTy = StructType::get(Elts); // At this point, NewSTy = "{ opaque*, sbyte* }", tell VMCore that...
2005 Mar 08
2
[LLVMdev] Recursive Types using the llvm support library
>> An example where something really simple like the line below was output >> would be perfect. >> >> %struct.linked_list = type { %struct.linked_list*, %sbyte* } > > Use something like this: > > PATypeHolder StructTy = OpaqueType::get(); > std::vector<const Type*> Elts; > Elts.push_back(PointerType::get(StructTy)); > Elts.push_back(PointerType::get(Type::SByteTy)); > StructType *NewSTy = StructType::get(Elts); > > // At this point, NewSTy = "{ opaque*, sbyte* }...
2005 Mar 08
3
[LLVMdev] Recursive Types using the llvm support library
As far as I can tell, when you construct a type using the support library StructType::get, you have to pass in a list of types. How can you make a Recursive type by passing in a pointer to the type you are constucting. An example where something really simple like the line below was output would be perfect. %struct.linked_list = type { %struct.linked_list*, %sbyte* } Thanks for any help,
2008 Oct 03
1
[LLVMdev] Question about recursive types
Dear all, I'm trying to run the example of recursive type construction examples in LLVM Programmer's Manual, here is the code: // Create the initial outer struct PATypeHolder StructTy = OpaqueType::get(); std::vector<const Type*> Elts; Elts.push_back(PointerType::get(StructTy)); Elts.push_back(Type::Int32Ty); StructType *NewSTy = StructType::get(Elts); // At this point, NewSTy = "{ opaque*, i32 }". Tell VMCore that // the struct and the opaque type ar...
2008 Feb 25
0
[LLVMdev] [PATCH] Add an assert to make sure PATypeHolder doesn't get a null pointer.
--- include/llvm/Type.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) -------------- next part -------------- A non-text attachment was scrubbed... Name: b0fec310cc5450e1b9802a28f02da9fa2a35e02d.diff Type: text/x-patch Size: 372 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080225/dcc614ab/attachment.bin>
2010 Feb 07
3
[LLVMdev] Help with Mac OS X 10.6.2 build
...ExprAST::Codegen() in ccHkdHVT.o BinaryExprAST::Codegen() in ccHkdHVT.o BinaryExprAST::Codegen() in ccHkdHVT.o BinaryExprAST::Codegen() in ccHkdHVT.o BinaryExprAST::Codegen() in ccHkdHVT.o BinaryExprAST::Codegen() in ccHkdHVT.o llvm::PATypeHolder::get() constin ccHkdHVT.o llvm::PATypeHolder::get() constin ccHkdHVT.o llvm::CallInst::CallInst<__gnu_cxx::__normal_iterator<llvm::Value**, std::vector<llvm::Value*, std::allocator<llvm::Value*> > > >(llvm::Value*, __gnu_cxx::__normal_iterator<llvm::Value**,...
2005 Mar 15
2
[LLVMdev] Dynamic Creation of a simple program
Thanks for the information I am trying to use one of your examples for recursive data structures: ========================= PATypeHolder StructTy = OpaqueType::get(); std::vector<const Type*> Elts; Elts.push_back(PointerType::get(StructTy)); Elts.push_back(PointerType::get(Type::SByteTy)); StructType *NewSTy = StructType::get(Elts); // At this point, NewSTy = "{ opaque*, sbyte* }", tell VMCore that // the struct a...
2005 Mar 08
0
[LLVMdev] Recursive Types using the llvm support library
...5, Vladimir Merzliakov wrote: >>> An example where something really simple like the line below was output >>> would be perfect. >>> >>> %struct.linked_list = type { %struct.linked_list*, %sbyte* } >> >> Use something like this: >> >> PATypeHolder StructTy = OpaqueType::get(); >> std::vector<const Type*> Elts; >> Elts.push_back(PointerType::get(StructTy)); >> Elts.push_back(PointerType::get(Type::SByteTy)); >> StructType *NewSTy = StructType::get(Elts); >> >> // At this point, NewSTy = &...
2007 Feb 22
2
[LLVMdev] opt -verify
....6(__assert_fail+0xfd)[0x4caae859] opt(llvm::BytecodeReader::ParseConstantPoolValue(unsigned int)+0x1b31)[0x856e825] opt(llvm::BytecodeReader::ParseConstantPool(std::vector<llvm::BytecodeReader::ValueList*, std::allocator<llvm::BytecodeReader::ValueList*> >&, std::vector<llvm::PATypeHolder, std::allocator<llvm::PATypeHolder> >&, bool)+0x147)[0x856e985] opt(llvm::BytecodeReader::ParseModule()+0x188)[0x856edfe] opt(llvm::BytecodeReader::ParseBytecode(unsigned char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char>...
2010 Feb 07
0
[LLVMdev] Help with Mac OS X 10.6.2 build
...o > BinaryExprAST::Codegen() in ccHkdHVT.o > BinaryExprAST::Codegen() in ccHkdHVT.o > BinaryExprAST::Codegen() in ccHkdHVT.o > BinaryExprAST::Codegen() in ccHkdHVT.o > BinaryExprAST::Codegen() in ccHkdHVT.o > llvm::PATypeHolder::get() constin ccHkdHVT.o > llvm::PATypeHolder::get() constin ccHkdHVT.o > llvm::CallInst::CallInst<__gnu_cxx::__normal_iterator<llvm::Value**, > std::vector<llvm::Value*, std::allocator<llvm::Value*> > > >> (llvm::Value*, __gnu_cxx::__normal_it...
2007 Feb 23
2
[LLVMdev] bytecode reader assertion failure
....6(__assert_fail+0xfd)[0x4caae859] opt(llvm::BytecodeReader::ParseConstantPoolValue(unsigned int)+0x1b31)[0x856e825] opt(llvm::BytecodeReader::ParseConstantPool(std::vector<llvm::BytecodeReader::ValueList*, std::allocator<llvm::BytecodeReader::ValueList*> >&, std::vector<llvm::PATypeHolder, std::allocator<llvm::PATypeHolder> >&, bool)+0x147)[0x856e985] opt(llvm::BytecodeReader::ParseModule()+0x188)[0x856edfe] opt(llvm::BytecodeReader::ParseBytecode(unsigned char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char>...
2007 Feb 22
3
[LLVMdev] opt -verify
...; opt(llvm::BytecodeReader::ParseConstantPoolValue(unsigned >> int)+0x1b31)[0x856e825] >> opt(llvm::BytecodeReader::ParseConstantPool(std::vector<llvm::BytecodeReader::ValueList*, >> std::allocator<llvm::BytecodeReader::ValueList*> >&, >> std::vector<llvm::PATypeHolder, std::allocator<llvm::PATypeHolder> >&, >> bool)+0x147)[0x856e985] >> opt(llvm::BytecodeReader::ParseModule()+0x188)[0x856edfe] >> opt(llvm::BytecodeReader::ParseBytecode(unsigned char const*, unsigned >> int, std::basic_string<char, std::char_traits<cha...
2006 May 09
1
[LLVMdev] Memory leaks in LLVM
...132== by 0x83E23D9: llvm::BytecodeReader::ParseConstantPoolValue(unsigned) (Reader.cpp :1476) ==10132== by 0x83E44E0: llvm::BytecodeReader::ParseConstantPool(std::vector<llvm::BytecodeReader::ValueList*, std::allocator<llvm::BytecodeReader::ValueList*> >&, std::vector<llvm::PATypeHolder, std::allocator<llvm::PATypeHolder> >&, bool) ( Reader.cpp:1749) ==10132== by 0x83E68C8: llvm::BytecodeReader::ParseModule() (Reader.cpp :2351) ==10132== by 0x83E74EE: llvm::BytecodeReader::ParseBytecode(unsigned char const*, unsigned, std::string const&) ( Reader.cpp:2469)...
2005 Mar 15
0
[LLVMdev] Dynamic Creation of a simple program
On Tue, 15 Mar 2005, xavier wrote: > Thanks for the information > I am trying to use one of your examples for recursive data structures: > > ========================= > PATypeHolder StructTy = OpaqueType::get(); > std::vector<const Type*> Elts; > Elts.push_back(PointerType::get(StructTy)); > Elts.push_back(PointerType::get(Type::SByteTy)); > StructType *NewSTy = StructType::get(Elts); > > // At this point, NewSTy = "{ opaque*, sbyte* }", tel...
2007 Feb 22
0
[LLVMdev] opt -verify
...BytecodeReader::ParseConstantPoolValue(unsigned >>>int)+0x1b31)[0x856e825] >>>opt(llvm::BytecodeReader::ParseConstantPool(std::vector<llvm::BytecodeReader::ValueList*, >>>std::allocator<llvm::BytecodeReader::ValueList*> >&, >>>std::vector<llvm::PATypeHolder, std::allocator<llvm::PATypeHolder> >&, >>>bool)+0x147)[0x856e985] >>>opt(llvm::BytecodeReader::ParseModule()+0x188)[0x856edfe] >>>opt(llvm::BytecodeReader::ParseBytecode(unsigned char const*, unsigned >>>int, std::basic_string<char, std::char_t...
2011 Nov 03
5
[LLVMdev] LLVM problem, please do not ignore
...i32* %retval, align 4 and the type is ddddbbm 28 br label %return and the type is ddddbbm 2 ret i32 %retval1 and the type is ddddbbm 1 0 opt 0x00000000008ed93f 1 opt 0x00000000008edcea 2 libpthread.so.0 0x00007f9ba1183c60 3 opt 0x00000000004b3615 llvm::PATypeHolder::get() const + 21 4 opt 0x00000000008a4f11 5 opt 0x00000000008a9404 6 opt 0x0000000000882557 llvm::FPPassManager::runOnFunction(llvm::Function&) + 551 7 opt 0x00000000008825db llvm::FPPassManager::runOnModule(llvm::Module&) + 75 8 opt...
2010 Mar 23
2
[LLVMdev] How to avoid memory leaks
...e const*, std::allocator<llvm::Type const*> >::vector(std::vector<llvm::Type const*, std::allocator<llvm::Type const*> > const&) (in /home/gabi/vgen/Debug/vgen) ==20504==    by 0x9070B4: std::_Rb_tree<llvm::FunctionValType, std::pair<llvm::FunctionValType const, llvm::PATypeHolder>, std::_Select1st<std::pair<llvm::FunctionValType const, llvm::PATypeHolder> >, std::less<llvm::FunctionValType>, std::allocator<std::pair<llvm::FunctionValType const, llvm::PATypeHolder> > >::_M_insert_(std::_Rb_tree_node_base const*, std::_Rb_tree_node_base c...