search for: str_2

Displaying 20 results from an estimated 20 matches for "str_2".

Did you mean: str_c
2019 Jul 23
2
[RFC] A new multidimensional array indexing intrinsic
...egal IR representation of what's being proposed would help. > > Here's a best guess, switching the indexed base type to a non-integer for illustration purposes: > > %arrayidx = call i64 @llvm.multidim.array.index.i64.p0f64.i64.i64.i64.i64 double* %A, i64 %str_1, i64 %idx_1, i64 %str_2, i64 %idx_2 > > According to the RFC, that would get lowered to this: > > %mul1 = mul nsw i64 %str_1, %idx_1 > %mul2 = mul1 nsw i64 %str_2, %idx_2 > %total = add nsw i64 %mul2, %mul1 > %arrayidx = getelementptr inbounds double, double* %A, i64 %total, !multidim !1 >...
2004 Sep 28
1
[LLVMdev] How could I hide the visible string?
...x sbyte] c"global string test\0A\00" ; <[20 x sbyte]*> [#uses=1] %.ctor_1 = internal global [20 x sbyte] c"Internal string test" ; <[20 x sbyte]*> [#uses=1] %.str_1 = internal constant [12 x sbyte] c"Global %s \0A\00" ; <[12 x sbyte]*> [#uses=1] %.str_2 = internal constant [13 x sbyte] c"Internal %s\0A\00" ; <[13 x sbyte]*> [#uses=1] %Initialized.0__ = internal global bool false ; <bool*> [#uses=2] implementation ; Functions: declare int %printf(sbyte*, ...) int %main(int %argc, sbyte** %argv) { entry: %b = alloca [20...
2006 Oct 16
1
[LLVMdev] initializer does not match global variable type.
...t few lines of output. thanks, Todd > cfrontend-g++ -o bar.bc bar.m > llvm2cpp -o bar.cpp bar.bc > g++ -c bar.o bar.cpp > ld -o bar bar.o -l objc -l LLVMCore -l LLVMSupport -l LLVMSystem > ./bar Global variable initializer type does not match global variable type! [13 x sbyte]* %.str_2 Global variable initializer type does not match global variable type! [9 x sbyte]* %.str_3 Global variable initializer type does not match global variable type! [2 x sbyte]* %.str_4 Broken module found, verification continues. ; ModuleID = 'bar.ll' target endian = little target pointersize...
2006 Jun 30
3
[LLVMdev] Removing dead code
...before RA: ---------------------------------------------------------------------------- entry (0x8605ba0, LLVM BB @0x8602d30): %reg1024 = OR4 %r3, %r3 %reg1025 = OR4 %r4, %r4 %reg1026 = LWZ 0, %reg1025 %reg1027 = LIS <ga:.str_1> %reg1028 = LIS <ga:.str_2> %reg1029 = LBZ 0, %reg1026 ADJCALLSTACKDOWN 56 %reg1030 = IMPLICIT_DEF_GPR %reg1031 = LA %reg1027, <ga:.str_1> %r3 = OR4 %reg1031, %reg1031 BL <ga:printf>, %r3 %reg1032 = OR4 %r3, %r3 <------------------- %reg10...
2004 Nov 30
4
[LLVMdev] Trouble using llvm tools
On Tue, 30 Nov 2004, Tanu Sharma wrote: > I have trouble using the llvm tools.Some of the errors are : > > $ llvm-dis prog.bc > $ llvm-dis: Invalid Top Level Block Length! Type:1, Size:456 (Vers=0, Pos=12) Can you explain how you generated this bytecode file? It looks corrupted or something. Also, can you send the actual bytecode file itself? Thanks! -Chris >
2004 Nov 30
0
[LLVMdev] Trouble using llvm tools
...Reid. -------------- next part -------------- target endian = little target pointersize = 32 %struct..TorRec = type { int, void ()* } %struct.TorRec = type { int, void ()* } %.str_1 = internal constant [24 x sbyte] c"This is main function \0A\00" ; <[24 x sbyte]*> [#uses=1] %.str_2 = internal constant [21 x sbyte] c"Calling sub function\00" ; <[21 x sbyte]*> [#uses=1] %.str_3 = internal constant [21 x sbyte] c"This is sub function\00" ; <[21 x sbyte]*> [#uses=1] %Initialized.0__ = internal global bool false ; <bool*> [#uses=2] impleme...
2018 Feb 06
4
Optimizar código
Hola a todos, Os pongo aquí debajo un pequeño fragmento de código. Resulta que dispongo de una CADENA que tiene dos columnas. Una con palabras y la otra que dice si es bueno o malo. En otra variable tengo una LISTA. Quiero cruzar todas las palabras de la lista con todas las de la cadena y cuando alguna coincida, que me indique en qué fila está y también si la palabra es "buena" o
2019 Jul 22
1
[RFC] A new multidimensional array indexing intrinsic
...sult> = llvm.multidim.array.index.* <ty> <ty>* <ptrval> {<stride>, <idx>}* > > It isn't clear to me what that means. The later example is also in a somewhat generalized form: > > %arrayidx = llvm.multidim.array.index.* i64 i64* %A, %str_1, %idx_1, %str_2, %idx_2 > > Trying to expand this into something concrete it looks to me like the extra value-less type argument ('i64' immediately following the intrinsic name) won't work, and if I'm reading it correctly that's a necessary element. The GEP instruction accepts a raw type...
2006 Oct 17
1
[LLVMdev] initializer does not match global variable type.
...ue %struct.objc_object = type { %struct.objc_class* } %struct.objc_protocol_list = type opaque %struct.sarray = type opaque %llvm.global_ctors = appending global [1 x { int, void ()* }] [ { int, void ()* } { int 65535, void ()* %_GLOBAL__I_main } ] ; <[1 x { int, void ()* }]*> [#uses=0] %.str_2 = internal constant [13 x sbyte] c"Hello world\0A\00" ; <[13 x sbyte]*> [#uses=1] %.str_3 = internal constant [9 x sbyte] c"Fraction\00" ; <[9 x sbyte]*> [#uses=1] %.str_4 = internal constant [2 x sbyte] c"\0A\00" ; <[2 x sbyte]*> [#uses=1] %_OBJC_S...
2006 Jun 30
0
[LLVMdev] Removing dead code
On Thu, 29 Jun 2006, Fernando Magno Quintao Pereira wrote: > I am working in a register allocator for LLVM, and I realized that, > after I perform register allocation, there is many move instructions that > are dead code, and can safely be removed. It is easy for the RA algorithm > to remove these instructions. It seems to me that the only instructions > with dead definitions
2006 Jun 30
2
[LLVMdev] Removing dead code
Dear guys, I am working in a register allocator for LLVM, and I realized that, after I perform register allocation, there is many move instructions that are dead code, and can safely be removed. It is easy for the RA algorithm to remove these instructions. It seems to me that the only instructions with dead definitions that I should not remove are the calls. Is it true? I would like to know
2004 Nov 30
0
[LLVMdev] Trouble using llvm tools
..."^@^@^@^@������"^@^@^@^@������^B^Q^@^@^@����^G^F^@^@]^Q^P^@^K<8c>^P^Hb^Q^A^A ^L ^@p^R^B^A^A������p^R^B^A^B������p^R��r^U^A^A^E^G^@^@��^H^@^@^@^A^A^B^Gtmp.1.i^C^G^B^Etmp.0^D^Gtmp.0.i^C^Etmp.2^C^L^L__main.entry^A endif.0.i^@^Eentry��$^M^@^@^B^Y^Nstruct..TorRec^Y^Mstruct.TorRecB^O^A^F.str_2^B^F.str_3^A^R^A^Fprintf^A^U^A^Dexit^A^W^A^Dmain^A^M^A^F.str_1^A^Q^A^OInitialized.0__������ ------------------------------------------------------------------------------- I generated it like this: $llvmgcc prog.c -o prog Thanks Tanu Chris Lattner <sabre at nondot.org> wrote: On Tue, 3...
2004 Oct 10
1
[LLVMdev] Re: Hide visible string in variable
...test\0A\00" ; <[20 x sbyte]*> [#uses=1] > > %.ctor_1 = internal global [20 x sbyte] c"Internal string test" ; <[20 x sbyte]*> [#uses=1] > > %.str_1 = internal constant [12 x sbyte] c"Global %s \0A\00" ; <[12 x sbyte]*> [#uses=1] > > %.str_2 = internal constant [13 x sbyte] c"Internal %s\0A\00" ; <[13 x sbyte]*> [#uses=1] > > %Initialized.0__ = internal global bool false ; <bool*> [#uses=2] > > > > implementation ; Functions: > > > > declare int %printf(sbyte*, ...) > > >...
2019 Jul 22
2
[RFC] A new multidimensional array indexing intrinsic
...e that the index expression computed by the lowered GEP is guaranteed to be in a canonical form which allows the analysis > to infer stride and index sizes. > > A multidim index of the form: > ``` > %arrayidx = llvm.multidim.array.index.* i64 i64* %A, %str_1, %idx_1, %str_2, %idx_2 > ``` > > is lowered to: > > ``` > %mul1 = mul nsw i64 %str_1, %idx_1 > %mul2 = mul1 nsw i64 %str_2, %idx_2 > %total = add nsw i64 %mul2, %mul1 > %arrayidx = getelementptr inbounds i64, i64* %A, i64 %total, !multidim !1 > ``` &gt...
2004 Jul 07
0
[LLVMdev] Duplicate assignment in LLVM?
...ist > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------------- %.str_1 = internal constant [42 x sbyte] c" ui = %u (0x%x)\09\09UL-ui = %lld (0x%llx)\0A\00" ; <[42 x sbyte]*> [#uses=1] %.str_2 = internal constant [44 x sbyte] c"ui*ui = %u (0x%x)\09 UL/ui = %lld (0x%llx)\0A\0A\00" ; <[44 x sbyte]*> [#uses=1] %.str_3 = internal constant [39 x sbyte] c" i = %d (0x%x)\09L-i = %lld (0x%llx)\0A\00" ; <[39 x sbyte]*> [#uses=1] %.str_4 = internal constant [4...
2019 Jul 21
6
[RFC] A new multidimensional array indexing intrinsic
...ith metadata. This metadata will indicate that the index expression computed by the lowered GEP is guaranteed to be in a canonical form which allows the analysis to infer stride and index sizes. A multidim index of the form: ``` %arrayidx = llvm.multidim.array.index.* i64 i64* %A, %str_1, %idx_1, %str_2, %idx_2 ``` is lowered to: ``` %mul1 = mul nsw i64 %str_1, %idx_1 %mul2 = mul1 nsw i64 %str_2, %idx_2 %total = add nsw i64 %mul2, %mul1 %arrayidx = getelementptr inbounds i64, i64* %A, i64 %total, !multidim !1 ``` with guarantees that the first term in each multiplication is the stride and the se...
2004 Jul 07
2
[LLVMdev] Duplicate assignment in LLVM?
Hello, when I'm compiling test/Programs/SingleSource/UnitTests/2003-05-26-Shorts.c I get LLVM assembler which looks like: int %main(int %argc, sbyte** %argv) { entry: call void %__main( ) %tmp.11 = call ulong %getL( ) ; <ulong> [#uses=16] %tmp.3 = cast ulong %tmp.11 to long ; <long> [#uses= %tmp.5 = cast ulong %tmp.11 to
2019 Jul 22
2
[RFC] A new multidimensional array indexing intrinsic
...at the index expression computed by the lowered GEP is guaranteed to be in a canonical form which allows the analysis >> to infer stride and index sizes. >> >> A multidim index of the form: >> ``` >> %arrayidx = llvm.multidim.array.index.* i64 i64* %A, %str_1, %idx_1, %str_2, %idx_2 >> ``` >> >> is lowered to: >> >> ``` >> %mul1 = mul nsw i64 %str_1, %idx_1 >> %mul2 = mul1 nsw i64 %str_2, %idx_2 >> %total = add nsw i64 %mul2, %mul1 >> %arrayidx = getelementptr inbounds i64, i64* %A, i64 %total, !multidim !1 >>...
2019 Jul 25
0
[RFC] A new multidimensional array indexing intrinsic
...ion computed by the lowered GEP is guaranteed to be in a canonical form which allows the analysis >>> to infer stride and index sizes. >>> >>> A multidim index of the form: >>> ``` >>> %arrayidx = llvm.multidim.array.index.* i64 i64* %A, %str_1, %idx_1, %str_2, %idx_2 >>> ``` >>> >>> is lowered to: >>> >>> ``` >>> %mul1 = mul nsw i64 %str_1, %idx_1 >>> %mul2 = mul1 nsw i64 %str_2, %idx_2 >>> %total = add nsw i64 %mul2, %mul1 >>> %arrayidx = getelementptr inbounds i64, i64* %...
2006 Oct 16
2
[LLVMdev] initializer does not match global variable type.
...-o bar.bc bar.m >>> llvm2cpp -o bar.cpp bar.bc >>> g++ -c bar.o bar.cpp >>> ld -o bar bar.o -l objc -l LLVMCore -l LLVMSupport -l LLVMSystem >>> ./bar >> >> Global variable initializer type does not match global variable type! >> [13 x sbyte]* %.str_2 >> Global variable initializer type does not match global variable type! >> [9 x sbyte]* %.str_3 >> Global variable initializer type does not match global variable type! >> [2 x sbyte]* %.str_4 >> Broken module found, verification continues.