Displaying 11 results from an estimated 11 matches for "str_3".
Did you mean:
str_c
2006 Oct 16
1
[LLVMdev] initializer does not match global variable type.
...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 = 32
target triple = "i686-pc-linux-gnu"
deplibs = [ "objc", "c&qu...
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
...= 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]
implementation ; Functions:
declare int %printf(sbyte*, ...)
declare void %exit(int)
int %main() {
entry:
%tmp.1.i...
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
2006 Oct 17
1
[LLVMdev] initializer does not match global variable type.
...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_SELECTOR_TABLE = internal global [6 x %struct._objc_selector]
zeroinitializer ; <[6 x %struct._objc_sel...
2005 Jun 22
0
[LLVMdev] LLVM Assembly code
...generated llvm assembly file using following commands:
llvm-ld main.o fir.o
llvm-dis a.out.bc
I get a.out.ll as the llvm assembly file. When i go through this assembly
file I come across the following code
fir.entry: ; preds = %loopexit.1.i
call void %print( sbyte* getelementptr ([2 x sbyte]* %.str_3, int
0, int 0), float* getelementptr ([97 x float]* %y, int 0, int 0), int 97 )
call void %exit( int 0 )
unreachable
Can anybody please tell me what is meant by "unreachable"? The output is
coming fine.
Regards,
manvi
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, 30 Nov 2004...
2005 Jun 17
5
[LLVMdev] Re: Control flow graph
On Fri, 17 Jun 2005, Manvi Agarwal wrote:
> Hi Chris,
Hi. FYI, it's usually better to email the llvmdev list with generic llvm
questions.
> Is it possible to get control flow graph of the application with the llvm
> infrastructure in terms of basic blocks?
Yes, given a BasicBlock*, you can iterate over the pred/succ blocks in the
CFG like this:
#include
2004 Jul 07
0
[LLVMdev] Duplicate assignment in LLVM?
...--------------
%.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 [41 x sbyte] c" i* i = %d (0x%x)\09L/ i = %lld (0x%llx)\0A\0A\00" ; <[41 x sbyte]*> [#uses=1]
%.str_5 = internal constant [42 x...
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
2006 Oct 16
2
[LLVMdev] initializer does not match global variable type.
...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.