search for: zeroinitializer

Displaying 20 results from an estimated 375 matches for "zeroinitializer".

2011 Feb 15
3
[LLVMdev] How to use ConstantFoldConstantExpression?
...mp;TD); if (val != NULL) { errs() << "**" << *cop << " to \n--" << *val << "\n"; } } And this is the output i get, all constants should result in "i32 0" (at least this is what I need): **i32 bitcast (<4 x i8> zeroinitializer to i32) to --i32 bitcast (<4 x i8> zeroinitializer to i32) **i32 sext (i8 trunc (i32 bitcast (<4 x i8> zeroinitializer to i32) to i8) to i32) to --i32 sext (i8 trunc (i32 bitcast (<4 x i8> zeroinitializer to i32) to i8) to i32) **i32 bitcast (<4 x i8> <i8 trunc (i32 shl...
2011 Feb 15
0
[LLVMdev] How to use ConstantFoldConstantExpression?
...> errs() << "**" << *cop << " to \n--" << *val << "\n"; > } > } > > And this is the output i get, all constants should result in "i32 0" (at least this is what I need): > > **i32 bitcast (<4 x i8> zeroinitializer to i32) to > --i32 bitcast (<4 x i8> zeroinitializer to i32) > > **i32 sext (i8 trunc (i32 bitcast (<4 x i8> zeroinitializer to i32) to i8) to i32) to > --i32 sext (i8 trunc (i32 bitcast (<4 x i8> zeroinitializer to i32) to i8) to i32) > > **i32 bitcast (<4 x...
2011 Feb 15
2
[LLVMdev] How to use ConstantFoldConstantExpression?
...> errs() << "**" << *cop << " to \n--" << *val << "\n"; > } > } > > And this is the output i get, all constants should result in "i32 0" (at least this is what I need): > > **i32 bitcast (<4 x i8> zeroinitializer to i32) to > --i32 bitcast (<4 x i8> zeroinitializer to i32) > > **i32 sext (i8 trunc (i32 bitcast (<4 x i8> zeroinitializer to i32) to i8) to i32) to > --i32 sext (i8 trunc (i32 bitcast (<4 x i8> zeroinitializer to i32) to i8) to i32) > > **i32 bitcast (<4 x...
2013 Jul 18
0
[LLVMdev] SIMD instructions and memory alignment on X86
Are you able to send any IR for others to reproduce this issue? On Wed, Jul 17, 2013 at 11:23 PM, Peter Newman <peter at uformia.com> wrote: > Unfortunately, this doesn't appear to be the bug I'm hitting. I applied > the fix to my source and it didn't make a difference. > > Also further testing found me getting the same behavior with other SIMD > instructions.
2013 Jul 18
2
[LLVMdev] SIMD instructions and memory alignment on X86
Unfortunately, this doesn't appear to be the bug I'm hitting. I applied the fix to my source and it didn't make a difference. Also further testing found me getting the same behavior with other SIMD instructions. The common factor is in each case, ECX is set to 0x7fffffff, and it's an operation using xmm ptr ecx+offset . Additionally, turning the optimization level passed to
2017 Mar 14
3
llvm-stress crash
...39; source_filename = "/tmp/autogen.bc" define void @autogen_SD29355(i8*, i32*, i64*, i32, i64, i8) { BB: %A4 = alloca double %A3 = alloca float %A2 = alloca i8 %A1 = alloca double %A = alloca i64 %L = load i8, i8* %0 store i8 33, i8* %0 %E = extractelement <8 x i1> zeroinitializer, i32 2 br label %CF261 CF261: ; preds = %BB %Shuff = shufflevector <2 x i16> zeroinitializer, <2 x i16> zeroinitializer, <2 x i32> <i32 undef, i32 3> %I = insertelement <8 x i8> zeroinitializer, i8 69, i32 3 %B = udiv...
2013 Jul 19
2
[LLVMdev] SIMD instructions and memory alignment on X86
...org/pipermail/llvm-dev/attachments/20130719/0ace5f38/attachment.html> -------------- next part -------------- ; ModuleID = 'crashmodule' @"460" = private constant [12 x <2 x double>] [<2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double> zeroinitializer, <2 x double> zeroinitializer, <2 x double> zeroinitializer, <2 x double> zeroinitializer, <2 x double> <double 1.000000e+00, double 1.000000e+00>, <2 x double> zeroinitializer, <2 x double> zeroinitializer, <2 x double> zeroinitializer, <2 x doubl...
2011 Aug 24
1
[LLVMdev] Assert on Large Zeroinitializer Store
On 8/24/11 1:51 PM, Eli Friedman wrote: > On Wed, Aug 24, 2011 at 11:41 AM, John Criswell<criswell at illinois.edu> wrote: >> Dear All, >> >> I currently have one of my transforms creating the following store >> instruction: >> >> store [65536 x i8] zeroinitializer, [65536 x i8]* %buf.i, align 16 >> >> ... which causes the SelectionDAG code to assert out: >> >> Assertion failed: (ResNo< NumValues&& "Illegal result number!"), >> function getValueType, file >> /Users/criswell/src/llvm/include/llvm/CodeG...
2014 Oct 25
2
[LLVMdev] Adding masked vector load and store intrinsics
> So %passthrough can *only* be undef or zeroinitializer? No, it can be any value including undef and zeroinitializer. We considered, while designing, zero and merge semantics and decided that merge semantics is better because it covers zero semantics if you use zeroinitializer in the %paththru. - Elena -----Original Message----- From: dag at cray....
2011 Aug 24
2
[LLVMdev] Assert on Large Zeroinitializer Store
Dear All, I currently have one of my transforms creating the following store instruction: store [65536 x i8] zeroinitializer, [65536 x i8]* %buf.i, align 16 ... which causes the SelectionDAG code to assert out: Assertion failed: (ResNo < NumValues && "Illegal result number!"), function getValueType, file /Users/criswell/src/llvm/include/llvm/CodeGen/SelectionDAGNodes.h, line 589. Should LLVM be...
2009 Sep 11
4
[LLVMdev] LLVM-GCC & GV zeroinitializers, 2.5 vs 2.6.
Hello folks, I have a small piece of C code written like this: typedef struct { char a; int b; int c; } foo; foo myFoo[5] = {{0}}; With llvm-gcc 2.5, I get the following IR: %struct.foo = type { i8, i32, i32 } @myFoo = global [5 x %struct.foo] zeroinitializer, align 32 With the current 2.6, I get this: %0 = type { i8, [11 x i8] } %struct.foo = type { i8, i32, i32 } @myFoo = global [5 x %0] zeroinitializer, align 32 Is there any reason for the change ? It is weird that in the end, with 2.6 myFoo doesn't have the [5 x %struct.foo]* type...
2009 Sep 11
0
[LLVMdev] LLVM-GCC & GV zeroinitializers, 2.5 vs 2.6.
...e is to support multicore JIT architecture. --Sam ----- Original Message ---- > From: Julien Lerouge <jlerouge at apple.com> > To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu> > Sent: Thursday, September 10, 2009 7:55:37 PM > Subject: [LLVMdev] LLVM-GCC & GV zeroinitializers, 2.5 vs 2.6. > > Hello folks, > > I have a small piece of C code written like this: > > typedef struct { > char a; > int b; > int c; > } foo; > > foo myFoo[5] = {{0}}; > > With llvm-gcc 2.5, I get the following...
2011 Aug 24
0
[LLVMdev] Assert on Large Zeroinitializer Store
On Wed, Aug 24, 2011 at 11:41 AM, John Criswell <criswell at illinois.edu> wrote: > Dear All, > > I currently have one of my transforms creating the following store > instruction: > > store [65536 x i8] zeroinitializer, [65536 x i8]* %buf.i, align 16 > > ... which causes the SelectionDAG code to assert out: > > Assertion failed: (ResNo < NumValues && "Illegal result number!"), > function getValueType, file > /Users/criswell/src/llvm/include/llvm/CodeGen/SelectionDAGNodes.h,...
2013 Apr 29
3
[LLVMdev] Many tests fail on Win64
Hi, I check-out the latest version of LLVM and see many failures (on Win64): ******************** 67> FAIL: LLVM :: Transforms/GlobalOpt/zeroinitializer-gep-load.ll (5518 of 7763) 67> ******************** TEST 'LLVM :: Transforms/GlobalOpt/zeroinitializer-gep-load.ll' FAILED ******************** 67> Script: 67> -- 67> W:/LLVM_org/build64/bin/Debug/opt.EXE < W:\LLVM_org\llvm\test\Transforms\GlobalOpt\zeroinitializer-gep-lo...
2011 Jun 17
3
[LLVMdev] can GlobalAlias point to a middle of a structure?
Hi, In order to find out-of-bound accesses to global objects with AddressSanitizer ( http://code.google.com/p/address-sanitizer/wiki/AddressSanitizer) I need to create redzones to the left and to the right of every global variable. I tried the following: Before: @Extern = global [10 x i8] zeroinitializer, align 1 After: %0 = type { [32 x i8], [10 x i8], [54 x i8] } @Extern_asan_redzone = global %0 zeroinitializer, align 1 @0 = global [10 x i8] zeroinitializer, align 1 << the old variable @Extern = alias getelementptr inbounds (%0* @Extern_asan_redzone, i32 0, i32 1) I.e. I created a...
2011 Dec 14
0
[LLVMdev] Help with hazards
...#39; target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32" target triple = "powerpc-unknown-linux-gnu" @.str = private unnamed_addr constant [6 x i8] c"s000 \00", align 1 @Y = common global [16000 x double] zeroinitializer, align 16 @X = common global [16000 x double] zeroinitializer, align 16 @Z = common global [16000 x double] zeroinitializer, align 16 @U = common global [16000 x double] zeroinitializer, align 16 @V = common global [16000 x double] zeroinitializer, align 16 @aa = common global [256 x [256 x double]...
2020 May 21
2
Updated llc does not compile my .ll files any more [addrspace on AVR problem?]
...= external local_unnamed_addr constant i8, align 1 @OUTPUT = external local_unnamed_addr constant i8, align 1 @HIGH = external local_unnamed_addr constant i8, align 1 @LOW = external local_unnamed_addr constant i8, align 1 @_Tv4main12bufferLengthVs5UInt8 = hidden local_unnamed_addr global %Vs5UInt8 zeroinitializer, align 1 @_Tv4main8irBufferGSpVs6UInt16_ = hidden local_unnamed_addr global %Sp zeroinitializer, align 8 @_Tv4main9redBufferGSpVs6UInt16_ = hidden local_unnamed_addr global %Sp zeroinitializer, align 8 @_Tv4main4SPO2Vs5Int32 = hidden global %Vs5Int32 zeroinitializer, align 4 @_Tv4main11isSPO2ValidS...
2014 Sep 26
2
[LLVMdev] Canonicalizing vector masking.
...ode which expands a vector of scale factors into the diagonal of a 4x4 diagonal matrix. This code pattern is coming from intrinsics which are explicitly doing the masking like this. My question is: should we canonicalize this to: %row0 = shufflevector <4 x float> %input, <4 x float> zeroinitializer, <4 x i32> <i32 0, i32 4, i32 4, i32 4> %row1 = shufflevector <4 x float> %input, <4 x float> zeroinitializer, <4 x i32> <i32 4, i32 1, i32 4, i32 4> %row2 = shufflevector <4 x float> %input, <4 x float> zeroinitializer, <4 x i32> <i32 4,...
2015 Jul 21
3
[LLVMdev] How to not zeroinitialize array
...vm.ident = !{!0} !0 = !{!"clang version 3.6.0 (tags/RELEASE_360/final)"} It turns into this: ; ModuleID = '.\t.ll' target datalayout = "e-m:w-p:32:32-i64:64-f80:32-n8:16:32-S32" target triple = "i686-pc-windows-gnu" @_ZN3Foo11ZeroAndZeroE = global [2 x i32] zeroinitializer, align 4 !llvm.ident = !{!0} !0 = !{!"clang version 3.6.0 (tags/RELEASE_360/final)"} My question is where is this transform happening - it looks like it's a byproduct of parsing the ll file which was super surprising to me. And second is there a know what to circumvent this? For...
2008 Oct 06
0
[LLVMdev] dejagnu test failures on x86-32 linux
...o failing tests on x86-32 linux: FAIL: test/FrontendC/2008-08-07-AlignPadding1.c Failed with exit(1) at line 1 while running: /usr/local/bin/llvm-gcc -emit-llvm -w test/FrontendC/2008-08-07-AlignPadding1.c -m64 -S -o - -emit-llvm -O0 | grep {zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer.*zeroinitializer} test/FrontendC/2008-08-07-AlignPadding1.c:1: sorry, unimplemented: 64-bit mode not co...