search for: gettypeinfo

Displaying 20 results from an estimated 38 matches for "gettypeinfo".

2013 Aug 20
0
[LLVMdev] Trying to run qt app compiled to bit code Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!")
...yahoo.com<mailto:shaileshkumar41 at yahoo.com>> Date: Tuesday, 20 August, 2013 9:32 AM To: LLVM List <llvmdev at cs.uiuc.edu<mailto:llvmdev at cs.uiuc.edu>> Subject: [LLVMdev] Trying to run qt app compiled to bit code Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!") Hi, I am trying to run a simple qt 5 application compiled to bitcode on OS X. I am getting the following error. I have modified lli to load qt libraries. When I use with option mcjit, I get the following error lli -use-mcjit -debug-ir bitcodetestqtapp Asserti...
2013 Aug 20
2
[LLVMdev] Trying to run qt app compiled to bit code Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!")
...g to run a simple qt 5 application compiled to bitcode on OS X. I am getting the following error. I have modified lli to load qt libraries. When I use with option mcjit, I get the following error lli -use-mcjit -debug-ir bitcodetestqtapp Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file /Users/shailesh/repos/llvm/include/llvm/IR/DataLayout.h, line 449. 0  lli               0x0000000102244f3e llvm::sys::PrintStackTrace(__sFILE*) + 46 1  lli               0x000000010224524b PrintStackTraceSignalHandler(void*) + 27...
2016 Mar 23
2
Help with pass manager
...uot;; return 1; } const PassInfo *PI = PR->getPassInfo(RunPass); if (!PI) { errs() << "run-pass pass is not registered.\n"; return 1; } StopAfterID = StartBeforeID = PI->getTypeInfo(); } else { if (!StartAfter.empty()) { const PassInfo *PI = PR->getPassInfo(StartAfter); if (!PI) { errs() << "start-after pass is not registered.\n"; return 1; }...
2016 Mar 24
2
Help with pass manager
...const PassInfo *PI = PR->getPassInfo(RunPass); >> if (!PI) { >> errs() << "run-pass pass is not registered.\n"; >> return 1; >> } >> StopAfterID = StartBeforeID = PI->getTypeInfo(); >> } else { >> if (!StartAfter.empty()) { >> const PassInfo *PI = PR->getPassInfo(StartAfter); >> if (!PI) { >> errs() << "start-after pass is not registered.\n"; >>...
2016 Mar 24
0
Help with pass manager
...; } > const PassInfo *PI = PR->getPassInfo(RunPass); > if (!PI) { > errs() << "run-pass pass is not registered.\n"; > return 1; > } > StopAfterID = StartBeforeID = PI->getTypeInfo(); > } else { > if (!StartAfter.empty()) { > const PassInfo *PI = PR->getPassInfo(StartAfter); > if (!PI) { > errs() << "start-after pass is not registered.\n"; > return...
2016 Mar 24
2
Help with pass manager
...;getPassInfo(RunPass); >>>> if (!PI) { >>>> errs() << "run-pass pass is not registered.\n"; >>>> return 1; >>>> } >>>> StopAfterID = StartBeforeID = PI->getTypeInfo(); >>>> } else { >>>> if (!StartAfter.empty()) { >>>> const PassInfo *PI = PR->getPassInfo(StartAfter); >>>> if (!PI) { >>>> errs() << "start-after pass...
2016 Mar 24
0
Help with pass manager
...assInfo *PI = PR->getPassInfo(RunPass); >>> if (!PI) { >>> errs() << "run-pass pass is not registered.\n"; >>> return 1; >>> } >>> StopAfterID = StartBeforeID = PI->getTypeInfo(); >>> } else { >>> if (!StartAfter.empty()) { >>> const PassInfo *PI = PR->getPassInfo(StartAfter); >>> if (!PI) { >>> errs() << "start-after pass is not registered.\n...
2016 Mar 24
2
Help with pass manager
...gt;> if (!PI) { >>>>>> errs() << "run-pass pass is not registered.\n"; >>>>>> return 1; >>>>>> } >>>>>> StopAfterID = StartBeforeID = PI->getTypeInfo(); >>>>>> } else { >>>>>> if (!StartAfter.empty()) { >>>>>> const PassInfo *PI = PR->getPassInfo(StartAfter); >>>>>> if (!PI) { >>>>>>...
2016 Mar 24
0
Help with pass manager
...); >>>>> if (!PI) { >>>>> errs() << "run-pass pass is not registered.\n"; >>>>> return 1; >>>>> } >>>>> StopAfterID = StartBeforeID = PI->getTypeInfo(); >>>>> } else { >>>>> if (!StartAfter.empty()) { >>>>> const PassInfo *PI = PR->getPassInfo(StartAfter); >>>>> if (!PI) { >>>>> errs() << &qu...
2016 Mar 24
2
Help with pass manager
...gt;>>>>>>> errs() << "run-pass pass is not registered.\n"; >>>>>>>> return 1; >>>>>>>> } >>>>>>>> StopAfterID = StartBeforeID = PI->getTypeInfo(); >>>>>>>> } else { >>>>>>>> if (!StartAfter.empty()) { >>>>>>>> const PassInfo *PI = PR->getPassInfo(StartAfter); >>>>>>>> if (!PI) { >>>...
2016 Mar 24
0
Help with pass manager
...if (!PI) { >>>>>>> errs() << "run-pass pass is not registered.\n"; >>>>>>> return 1; >>>>>>> } >>>>>>> StopAfterID = StartBeforeID = PI->getTypeInfo(); >>>>>>> } else { >>>>>>> if (!StartAfter.empty()) { >>>>>>> const PassInfo *PI = PR->getPassInfo(StartAfter); >>>>>>> if (!PI) { >>>>>>>...
2016 Mar 24
0
Help with pass manager
...gt;>>>> errs() << "run-pass pass is not registered.\n"; >>>>>>>>> return 1; >>>>>>>>> } >>>>>>>>> StopAfterID = StartBeforeID = PI->getTypeInfo(); >>>>>>>>> } else { >>>>>>>>> if (!StartAfter.empty()) { >>>>>>>>> const PassInfo *PI = PR->getPassInfo(StartAfter); >>>>>>>>> if (!PI...
2016 Mar 24
2
Help with pass manager
...gt;> errs() << "run-pass pass is not registered.\n"; >>>>>>>>>> return 1; >>>>>>>>>> } >>>>>>>>>> StopAfterID = StartBeforeID = PI->getTypeInfo(); >>>>>>>>>> } else { >>>>>>>>>> if (!StartAfter.empty()) { >>>>>>>>>> const PassInfo *PI = PR->getPassInfo(StartAfter); >>>>>>>>>>...
2017 Jul 21
2
type information about instruction
...). I can do this by extracting type of the Values, but if I have still some unused instructions , I can't keep track on them. I try to convert them to Value and get the type or simply get the type of instruction, but have the following error: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed. This is second or instruction: %1 = or i32 10, 20 %2 = or i32 %1, 10 ret i32 %1 What can be done in this case? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachm...
2016 Mar 24
0
Help with pass manager
...errs() << "run-pass pass is not registered.\n"; >>>>>>>>>>> return 1; >>>>>>>>>>> } >>>>>>>>>>> StopAfterID = StartBeforeID = PI->getTypeInfo(); >>>>>>>>>>> } else { >>>>>>>>>>> if (!StartAfter.empty()) { >>>>>>>>>>> const PassInfo *PI = PR->getPassInfo(StartAfter); >>>>>>>>>...
2016 Mar 30
1
Help with pass manager
...errs() << "run-pass pass is not registered.\n"; >>>>>>>>>>>> return 1; >>>>>>>>>>>> } >>>>>>>>>>>> StopAfterID = StartBeforeID = PI->getTypeInfo(); >>>>>>>>>>>> } else { >>>>>>>>>>>> if (!StartAfter.empty()) { >>>>>>>>>>>> const PassInfo *PI = PR->getPassInfo(StartAfter); >>>>>>...
2004 Jul 01
1
[LLVMdev] Size/Alignment handling bug?
I think there's possible bug in alignment handling. When getTypeInfo function in TargetData.cpp is called on: [100 x short] it always returns 200 as the size. However, if alignment for short is '4', then each array element should be aligned at 4-byte boundary, and the total size of the array is more like 400. For a while, I've made the attached...
2007 Mar 23
1
[LLVMdev] NEWBIE: deleting Instructions
...ment 'help' defined more than once! opt: CommandLine Error: Argument 'help-hidden' defined more than once! opt: CommandLine Error: Argument 'version' defined more than once! opt: Pass.cpp:346: void llvm::RegisterPassBase::registerPass(): Assertion `PassInfoMap->find(PIObj.getTypeInfo()) == PassInfoMap->end() && "Pass already registered!"' failed. Aborted PASS: virtual bool runOnFunction(Function &F) { bool change= false; Function* func = &F; for(Function::iterator it = func->begin(), ite = func ->end(); it!=ite ; ++it) {...
2004 Dec 03
1
[Fwd: [LLVMdev] GetElementPtr for packed types and VS build]
...004 22:18:18 -0000 1.53 > +++ lib/Target/TargetData.cpp 26 Nov 2004 09:46:45 -0000 > @@ -175,6 +175,13 @@ > Size = AlignedSize*ATy->getNumElements(); > return; > } > + case Type::PackedTyID: { > + const PackedType *PTy = cast<PackedType>(Ty); > + getTypeInfo(PTy->getElementType(), TD, Size, Alignment); > + unsigned AlignedSize = (Size + Alignment - 1)/Alignment*Alignment; > + Size = AlignedSize*PTy->getNumElements(); > + return; > + } > case Type::StructTyID: { > // Get the layout annotation... which is lazily...
2004 Jun 19
1
[LLVMdev] The size of char
To figure out the size of data varaibles for my backend, I tries this code stolen from X86 backend: const TargetData& TD = m_tm.getTargetData(); unsigned size = TD.getTypeSize(initializer->getType()); However, the getTypeInfo function in TargetData.cpp contains this: case Type::VoidTyID: case Type::BoolTyID: case Type::UByteTyID: case Type::SByteTyID: Size = 1; Alignment = TD->getByteAlignment(); return; The problem is that my target can't address bytes -- the memory interface itself spec...