[cfe-users] PointerTy and VectorTy
Hello, I'm using LLVM 3.4 and have the following IR instruction: %tmp1 = load *<2 x float>** %tmp, align 1, !dbg !26 The operand 0 of the load instruction is of type PointerType. I've checked this using: I.getOperand(0)->getType()->isPointerTy(). I would appreciate if someone could tell me how I could extract from this PointerType operand the vector size (2) and the scalar type (float). Many thanks, Simona ___ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
Re: [cfe-users] PointerTy and VectorTy
PointerType::getElementType should give you the vector type, which should have the size and element type On Feb 25, 2016 5:03 AM, "Simona Simona via cfe-users" < cfe-users@lists.llvm.org> wrote: > Hello, > > I'm using LLVM 3.4 and have the following IR instruction: >%tmp1 = load *<2 x float>** %tmp, align 1, !dbg !26 > > The operand 0 of the load instruction is of type PointerType. I've checked > this using: I.getOperand(0)->getType()->isPointerTy(). > I would appreciate if someone could tell me how I could extract from this > PointerType operand the vector size (2) and the scalar type (float). > > Many thanks, > Simona > > > > ___ > cfe-users mailing list > cfe-users@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users > > ___ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
[cfe-users] RELEASE_380/rc3 clang failed tests
Scanning dependencies of target check-all [100%] Running all regression tests lit.py: lit.cfg:195: note: using clang: '/home/dave/llvm_build/./bin/clang' FAIL: Clang :: CodeGen/constructor-attribute.c (1627 of 24255) TEST 'Clang :: CodeGen/constructor-attribute.c' FAILED Script: -- /home/dave/llvm_build/./bin/clang -cc1 -internal-isystem /home/dave/llvm_build/bin/../lib/clang/3.8.0/include -nostdsysteminc -emit- llvm -o /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- attribute.c.tmp /home/dave/llvm/tools/clang/test/CodeGen/constructor- attribute.c grep -e "global_ctors.*@A" /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- attribute.c.tmp grep -e "global_dtors.*@B" /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- attribute.c.tmp grep -e "global_ctors.*@C" /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- attribute.c.tmp grep -e "global_dtors.*@D" /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- attribute.c.tmp -- Exit Code: 2 Command Output (stderr): -- grep: illegal option -- e Usage: grep [-c|-l|-q] -bhinsvw pattern file . . . -- FAIL: Clang :: CodeGenObjC/bitfield-ivar-offsets.m (2885 of 24255) TEST 'Clang :: CodeGenObjC/bitfield-ivar-offsets.m' FAILED Script: -- /home/dave/llvm_build/./bin/clang -cc1 -internal-isystem /home/dave/llvm_build/bin/../lib/clang/3.8.0/include -nostdsysteminc -triple x86_64-apple-darwin10 -emit-llvm -o /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield-ivar- offsets.m.tmp /home/dave/llvm/tools/clang/test/CodeGenObjC/bitfield-ivar- offsets.m grep -F '@"OBJC_IVAR_$_I0._b0" = global i64 0, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp grep -F '@"OBJC_IVAR_$_I0._b1" = global i64 0, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp grep -F '@"OBJC_IVAR_$_I0._b2" = global i64 1, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp grep -F '@"OBJC_IVAR_$_I0._x" = global i64 2, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp grep -F '@"OBJC_IVAR_$_I0._b3" = global i64 4, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp grep -F '@"OBJC_IVAR_$_I0._y" = global i64 6, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp grep -F '@"OBJC_IVAR_$_I0._b4" = global i64 7, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp not grep -F '@"OBJC_IVAR_$_I0." = global' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield-ivar- offsets.m.tmp -- Exit Code: 2 Command Output (stderr): -- /home/dave/llvm/tools/clang/test/CodeGenObjC/bitfield-ivar-offsets.m:11:12: warning: class 'I0' defined without specifying a base class @interface I0 { ^ /home/dave/llvm/tools/clang/test/CodeGenObjC/bitfield-ivar-offsets.m:11:14: note: add a super class to fix this problem @interface I0 { ^ 1 warning generated. grep: illegal option -- F Usage: grep [-c|-l|-q] -bhinsvw pattern file . . . -- FAIL: Clang :: CodeGenObjC/encode-test-2.m (2972 of 24255) TEST 'Clang :: CodeGenObjC/encode-test-2.m' FAILED Script: -- /home/dave/llvm_build/./bin/clang -cc1 -internal-isystem /home/dave/llvm_build/bin/../lib/clang/3.8.0/include -nostdsysteminc - triple=i686-apple-darwin9 -emit-llvm -o /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/encode-test-2.m.tmp /home/dave/llvm/tools/clang/test/CodeGenObjC/encode-test-2.m grep -e "@\\\22\\\22" /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/encode-test-2.m.tmp grep -e "@\\\22\\\22" /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/encode-test-2.m.tmp grep -e "@\\\22\\\22" /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/encode-test-2.m.tmp grep -e "@\\\22Foo\\\22" /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/encode-test-2.m.tmp grep -e "{Intf=#}" /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/encode-test-2.m.tmp -- Exit Code: 2 Command Output (stderr): -- /home/dave/llvm/tools/clang/test/CodeGenObjC/encode-test-2.m:14:12: warning: class 'Intf' defined without specifying a base class @interface Intf ^ /home/dave/llvm/tools/clang/test/CodeGenObjC/encode-test-2.m:14:16: note: add a super class to fix this problem @interface Intf ^ 1 warning generated. grep: illegal option -- e Usage: grep [-c|-l|-q] -bhinsvw pattern file . . . -- *
[cfe-users] Failed Test on SPARC (solaris 11) clang (and bus core dumps)
Scanning dependencies of target check-all [100%] Running all regression tests lit.py: lit.cfg:195: note: using clang: '/home/dave/llvm_build/./bin/clang' FAIL: Clang :: CodeGen/constructor-attribute.c (1627 of 24255) TEST 'Clang :: CodeGen/constructor-attribute.c' FAILED Script: -- /home/dave/llvm_build/./bin/clang -cc1 -internal-isystem /home/dave/llvm_build/bin/../lib/clang/3.8.0/include -nostdsysteminc -emit- llvm -o /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- attribute.c.tmp /home/dave/llvm/tools/clang/test/CodeGen/constructor- attribute.c grep -e "global_ctors.*@A" /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- attribute.c.tmp grep -e "global_dtors.*@B" /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- attribute.c.tmp grep -e "global_ctors.*@C" /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- attribute.c.tmp grep -e "global_dtors.*@D" /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- attribute.c.tmp -- Exit Code: 2 Command Output (stderr): -- grep: illegal option -- e Usage: grep [-c|-l|-q] -bhinsvw pattern file . . . -- FAIL: Clang :: CodeGenObjC/bitfield-ivar-offsets.m (2885 of 24255) TEST 'Clang :: CodeGenObjC/bitfield-ivar-offsets.m' FAILED Script: -- /home/dave/llvm_build/./bin/clang -cc1 -internal-isystem /home/dave/llvm_build/bin/../lib/clang/3.8.0/include -nostdsysteminc -triple x86_64-apple-darwin10 -emit-llvm -o /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield-ivar- offsets.m.tmp /home/dave/llvm/tools/clang/test/CodeGenObjC/bitfield-ivar- offsets.m grep -F '@"OBJC_IVAR_$_I0._b0" = global i64 0, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp grep -F '@"OBJC_IVAR_$_I0._b1" = global i64 0, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp grep -F '@"OBJC_IVAR_$_I0._b2" = global i64 1, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp grep -F '@"OBJC_IVAR_$_I0._x" = global i64 2, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp grep -F '@"OBJC_IVAR_$_I0._b3" = global i64 4, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp grep -F '@"OBJC_IVAR_$_I0._y" = global i64 6, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp grep -F '@"OBJC_IVAR_$_I0._b4" = global i64 7, section "__DATA, __objc_ivar", align 8' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield- ivar-offsets.m.tmp not grep -F '@"OBJC_IVAR_$_I0." = global' /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/bitfield-ivar- offsets.m.tmp -- Exit Code: 2 Command Output (stderr): -- /home/dave/llvm/tools/clang/test/CodeGenObjC/bitfield-ivar-offsets.m:11:12: warning: class 'I0' defined without specifying a base class @interface I0 { ^ /home/dave/llvm/tools/clang/test/CodeGenObjC/bitfield-ivar-offsets.m:11:14: note: add a super class to fix this problem @interface I0 { ^ 1 warning generated. grep: illegal option -- F Usage: grep [-c|-l|-q] -bhinsvw pattern file . . . -- FAIL: Clang :: CodeGenObjC/encode-test-2.m (2972 of 24255) TEST 'Clang :: CodeGenObjC/encode-test-2.m' FAILED Script: -- /home/dave/llvm_build/./bin/clang -cc1 -internal-isystem /home/dave/llvm_build/bin/../lib/clang/3.8.0/include -nostdsysteminc - triple=i686-apple-darwin9 -emit-llvm -o /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/encode-test-2.m.tmp /home/dave/llvm/tools/clang/test/CodeGenObjC/encode-test-2.m grep -e "@\\\22\\\22" /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/encode-test-2.m.tmp grep -e "@\\\22\\\22" /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/encode-test-2.m.tmp grep -e "@\\\22\\\22" /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/encode-test-2.m.tmp grep -e "@\\\22Foo\\\22" /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/encode-test-2.m.tmp grep -e "{Intf=#}" /home/dave/llvm_build/tools/clang/test/CodeGenObjC/Output/encode-test-2.m.tmp -- Exit Code: 2 Command Output (stderr): -- /home/dave/llvm/tools/clang/test/CodeGenObjC/encode-test-2.m:14:12: warning: class 'Intf' defined without specifying a base class @interface Intf ^ /home/dave/llvm/tools/clang/test/CodeGenObjC/encode-test-2.m:14:16: note: add a super class to fix this problem @interface Intf ^ 1 warning generated. grep: illegal option -- e Usage: grep [-c|-l|-q] -bhinsvw pattern file . . . -- *
Re: [cfe-users] RELEASE_380/rc3 clang failed tests
Hi Dave, On Thu, Feb 25, 2016 at 2:32 PM, Dave Ryan via cfe-users wrote: > Scanning dependencies of target check-all > [100%] Running all regression tests > lit.py: lit.cfg:195: note: using clang: '/home/dave/llvm_build/./bin/clang' > FAIL: Clang :: CodeGen/constructor-attribute.c (1627 of 24255) > TEST 'Clang :: CodeGen/constructor-attribute.c' FAILED > > Script: > -- > /home/dave/llvm_build/./bin/clang -cc1 -internal-isystem > /home/dave/llvm_build/bin/../lib/clang/3.8.0/include -nostdsysteminc -emit- > llvm -o /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- > attribute.c.tmp /home/dave/llvm/tools/clang/test/CodeGen/constructor- > attribute.c > grep -e "global_ctors.*@A" > /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- > attribute.c.tmp > grep -e "global_dtors.*@B" > /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- > attribute.c.tmp > grep -e "global_ctors.*@C" > /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- > attribute.c.tmp > grep -e "global_dtors.*@D" > /home/dave/llvm_build/tools/clang/test/CodeGen/Output/constructor- > attribute.c.tmp > -- > Exit Code: 2 > > Command Output (stderr): > -- > grep: illegal option -- e > Usage: grep [-c|-l|-q] -bhinsvw pattern file . . . On what system is this? I think grep -e and -F are both specified by POSIX. ___ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
[cfe-users] Bus Error with clang and clang++ on Solaris 11 SPARC (32bit0 RELEASE_380/rc3
All, These 2 simple applications will cause a bus error on SPARC Solaris 11. Note the programs run fine with gcc and g++ 5.3.0. Dave /* c program causes bus error on solaris */ #include int main() { long double x = 1.2; printf("x: %Lg", x); } // c++ program causes bus error #include using namespace std; int main() { long double x = 1.2; cout << "X: " << x << endl; } ___ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users