Displaying 20 results from an estimated 48 matches for "issized".
2013 Jan 22
2
[LLVMdev] StructType opaque->sized
I'm building a StructType without a body using
StructType *StructType::create(LLVMContext &Context, StringRef Name);
and then later adding a body to with setBody(). It starts of isOpaque() == true, and isSized() == false, and after I add the body, isOpaque() == false, but isSized() is still false.
If I create a StructType using
StructType * StructType ::create(LLVMContext &Context,
ArrayRef<Type*> Elements,
StringRef Name,...
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!")
...ilesh Kumar <shaileshkumar41 at 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-mcj...
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!")
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
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 Pr...
2010 May 28
4
[LLVMdev] how to get TargetData?
Dear all
I am trying to get the size of an LLVM pointer type.
getPrimitiveSizeInBits() returns 0 for it and the documentation for
isSized() suggest to use TargetData.
I figured out from Kaleidoscope example that one can get a pointer to
TagetData object through the execution engine but it seems to be an
overkill.
What is the right way to do it?
Best regards,
Victor
-------------- next part --------------
An HTML attachment was scrub...
2013 Jan 22
0
[LLVMdev] StructType opaque->sized
Hi Rick,
On 22/01/13 09:04, Rick Mann wrote:
> I'm building a StructType without a body using
>
> StructType *StructType::create(LLVMContext &Context, StringRef Name);
>
> and then later adding a body to with setBody(). It starts of isOpaque() == true, and isSized() == false, and after I add the body, isOpaque() == false, but isSized() is still false.
this is the standard way of making a struct type, so I suspect you made a
mistake such as adding an opaque field to the struct (this will stop it from
having a size).
Ciao, Duncan.
>
> If I create a St...
2004 Dec 03
1
[Fwd: [LLVMdev] GetElementPtr for packed types and VS build]
...evision 1.119
> diff -u -r1.119 Type.cpp
> --- lib/VMCore/Type.cpp 19 Nov 2004 16:39:44 -0000 1.119
> +++ lib/VMCore/Type.cpp 1 Dec 2004 11:33:46 -0000
> @@ -151,6 +151,9 @@
> if (const ArrayType *ATy = dyn_cast<ArrayType>(this))
> return ATy->getElementType()->isSized();
>
> + if (const PackedType *PTy = dyn_cast<PackedType>(this))
> + return PTy->getElementType()->isSized();
> +
> if (!isa<StructType>(this)) return false;
>
> // Okay, our struct is sized if all of the elements are...
>
> ______________...
2017 Jul 21
2
type information about instruction
...ions (
and Values at the same time). 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://lis...
2008 Mar 27
2
[LLVMdev] llvm-gcc 4.2 assertion failed on linux x86_64
...tion `(!(__extension__ ({ const tree __t = (Tr); if
(tree_code_type[(int) (((enum tree_code) (__t)->common.code))] !=
(tcc_type)) tree_class_check_failed (__t, (tcc_type),
"/home/chandlerc/code/compilers/llvm-gcc/gcc/llvm-types.cpp", 81,
__FUNCTION__); __t; })->type.size) || !Ty->isSized() ||
!isInt64((__extension__ ({ const tree __t = (Tr); if
(tree_code_type[(int) (((enum tree_code) (__t)->common.code))] !=
(tcc_type)) tree_class_check_failed (__t, (tcc_type),
"/home/chandlerc/code/compilers/llvm-gcc/gcc/llvm-types.cpp", 81,
__FUNCTION__); __t; })->type.size), tru...
2010 May 28
0
[LLVMdev] how to get TargetData?
Victor Zverovich wrote:
> Dear all
>
> I am trying to get the size of an LLVM pointer type.
> getPrimitiveSizeInBits() returns 0 for it and the documentation for
> isSized() suggest to use TargetData.
> I figured out from Kaleidoscope example that one can get a pointer to
> TagetData object through the execution engine but it seems to be an
> overkill.
> What is the right way to do it?
TargetData is an LLVM pass. If you're writing an LLVM pass, jus...
2008 Jul 10
0
[LLVMdev] InstructionCombining forgets alignment of globals
I think I found it. In InstCombiner::ComputeMaskedBits we have the following
lines:
if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
unsigned Align = GV->getAlignment();
if (Align == 0 && TD && GV->getType()->getElementType()->isSized())
Align = TD->getPrefTypeAlignment(GV->getType()->getElementType());
It assumes that global values are always optimally aligned. I think this is
incorrect and the bottom two lines should be removed.
However, I do think it's useful to specify the alignment at the time o...
2008 Jul 10
2
[LLVMdev] InstructionCombining forgets alignment of globals
Hi Nicolas,
> if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
>
> unsigned Align = GV->getAlignment();
>
> if (Align == 0 && TD && GV->getType()->getElementType()->isSized())
>
> Align = TD->getPrefTypeAlignment(GV->getType()->getElementType());
>
> It assumes that global values are always optimally aligned. I think this is
> incorrect and the bottom two lines should be removed.
I don't understand - if Align is zero it means that...
2008 Mar 25
2
[LLVMdev] llvm-gcc 4.2 assertion failed on linux x86_64
...tion `(!(__extension__ ({ const tree __t = (Tr); if
(tree_code_type[(int) (((enum tree_code) (__t)->common.code))] !=
(tcc_type)) tree_class_check_failed (__t, (tcc_type),
"/home/chandlerc/code/compilers/llvm-gcc/gcc/llvm-types.cpp", 81,
__FUNCTION__); __t; })->type.size) || !Ty->isSized() ||
!isInt64((__extension__ ({ const tree __t = (Tr); if
(tree_code_type[(int) (((enum tree_code) (__t)->common.code))] !=
(tcc_type)) tree_class_check_failed (__t, (tcc_type),
"/home/chandlerc/code/compilers/llvm-gcc/gcc/llvm-types.cpp", 81,
__FUNCTION__); __t; })->type.size), tru...
2008 Mar 27
0
[LLVMdev] llvm-gcc 4.2 assertion failed on linux x86_64
Hi Chandler,
> void
> foo () {
> float x __attribute__ ((mode (XF)));
> }
nice reduction. I don't see any problem on x86-32,
and I don't have access to an x86-64 box right now.
Can you please open a PR for this, and also run in
the debugger. When you hit the abort, use "up" to
go up a stack frame or two or three, and print out
the gcc types [use: call
2008 Mar 25
0
[LLVMdev] llvm-gcc 4.2 assertion failed on linux x86_64
...__ ({ const tree __t = (Tr); if
> (tree_code_type[(int) (((enum tree_code) (__t)->common.code))] !=
> (tcc_type)) tree_class_check_failed (__t, (tcc_type),
> "/home/chandlerc/code/compilers/llvm-gcc/gcc/llvm-types.cpp", 81,
> __FUNCTION__); __t; })->type.size) || !Ty->isSized() ||
> !isInt64((__extension__ ({ const tree __t = (Tr); if
> (tree_code_type[(int) (((enum tree_code) (__t)->common.code))] !=
> (tcc_type)) tree_class_check_failed (__t, (tcc_type),
> "/home/chandlerc/code/compilers/llvm-gcc/gcc/llvm-types.cpp", 81,
> __FUNCTION__); __...
2008 Jul 10
3
[LLVMdev] InstructionCombining forgets alignment of globals
Hi all,
The InstructionCombining pass causes alignment of globals to be ignored.
I've attached a replacement of Fibonacci.cpp which reproduces this (I used
2.3 release). Here's the x86 code it produces:
03C20019 movaps xmm0,xmmword ptr ds:[164E799h]
03C20020 mulps xmm0,xmmword ptr ds:[164E79Ah]
03C20027 movaps xmmword ptr ds:[164E799h],xmm0
03C2002E
2010 May 28
0
[LLVMdev] how to get TargetData?
...Hope this will be helpful to you.
Zonr
On Fri, May 28, 2010 at 11:27 PM, Victor Zverovich <
victor.zverovich at googlemail.com> wrote:
> Dear all
>
> I am trying to get the size of an LLVM pointer type.
> getPrimitiveSizeInBits() returns 0 for it and the documentation for
> isSized() suggest to use TargetData.
> I figured out from Kaleidoscope example that one can get a pointer to
> TagetData object through the execution engine but it seems to be an
> overkill.
> What is the right way to do it?
>
> Best regards,
> Victor
>
>
> ___________________...
2008 Mar 27
2
[LLVMdev] llvm-gcc 4.2 assertion failed on linux x86_64
...ion
`(!(__extension__ ({ const tree __t = (Tr); if (tree_code_type[(int) (((enum
tree_code) (__t)->common.code))] != (tcc_type)) tree_class_check_failed
(__t, (tcc_type), "/home/chandlerc/code/compilers/llvm-gcc/gcc/llvm-
types.cpp", 81, __FUNCTION__); __t; })->type.size) || !Ty->isSized() ||
!isInt64((__extension__ ({ const tree __t = (Tr); if (tree_code_type[(int)
(((enum tree_code) (__t)->common.code))] != (tcc_type))
tree_class_check_failed (__t, (tcc_type),
"/home/chandlerc/code/compilers/llvm-gcc/gcc/llvm-types.cpp", 81,
__FUNCTION__); __t; })->type.size), tru...
2010 Jan 08
3
[LLVMdev] Cygwin llvm-gcc regression
...nclude
-I/home/ang/svn/llvm-gcc/gcc/../libcp
p/include -I/home/ang/svn/llvm-gcc/gcc/../libdecnumber -I../libdecnumber
-I/hom
e/ang/build/llvm/include -I/home/ang/svn/llvm/include -DL_powixf2 -c
/home/ang/s
vn/llvm-gcc/gcc/libgcc2.c -o libgcc/./_powixf2.o
assertion "(!TYPE_SIZE(Tr) || !Ty->isSized() || !isInt64(TYPE_SIZE(Tr),
true) ||
getInt64(TYPE_SIZE(Tr), true) ==
getTargetData().getTypeAllocSizeInBits(Ty)) &&
"LLVM type size doesn't match GCC type size!"" failed: file
"/home/ang/svn/llvm
-gcc/gcc/llvm-types.cpp", line 83
This assertion has not chan...
2009 Jan 09
0
[LLVMdev] RFC: Store alignment should be LValue alignment, not source alignment
...> @@ -5924,7 +5936,13 @@ LValue TreeToLLVM::EmitLV_DECL(tree exp)
> // type void.
> if (Ty == Type::VoidTy) Ty = StructType::get(NULL, NULL);
> const PointerType *PTy = PointerType::getUnqual(Ty);
> - return BitCastToType(Decl, PTy);
> + unsigned Alignment = Ty->isSized() ? TD.getABITypeAlignment(Ty) : 1;
Can't you just use expr_align here? That said, I'm not sure what
this case is doing.
> + if (DECL_ALIGN_UNIT(exp)) {
> + if (DECL_USER_ALIGN(exp) || Alignment <
> (unsigned)DECL_ALIGN_UNIT(exp))
> + Alignment = DECL_ALIGN_UNIT...
2009 Jun 29
1
[LLVMdev] Type get size
...to get
the size of a global variable. That is, if the C source looks like:
int a[3];
then printing the description of the type of this global looks like:
[3 x i32]*
Is there some nice way to get "3 words" or "12 bytes" from the above
example? Let's assume I do some "isSized" check. It looks like there
is a getPrimitiveSizeInBits, but nothing for composite types. Maybe I
am missing something.
Thanks,
Scott