search for: lc0

Displaying 20 results from an estimated 52 matches for "lc0".

Did you mean: c0
2007 Jun 12
2
[LLVMdev] Problems with the tools
...Visual C++ 2005. After a few tweaks, it produced several nice .exe files. I tried to compile a simple Hello-World program as given in the documentation: -------------------------------------------------------------------------------------- ; Declare the string constant as a global constant... %.LC0 = internal constant [13 x i8 ] c"hello world\0A\00" ; [13 x i8 ]* ; External declaration of the puts function declare i32 %puts(i8 *) ; i32(i8 *)* ; Definition of main function define i32 %main() {...
2002 Sep 10
0
[LLVMdev] Re: Qustion about LLVM docs (fwd)
...se of getelementptr: > Hi. I found an LLVM code example that might be an error. The relevant > URL is: http://llvm.cs.uiuc.edu/docs/LangRef.html#modulestructure > > There is a piece of code which looks like this: > > ; Declare the string constant as a global constant... > %.LC0 = internal constant [13 x sbyte] c"hello world\0A\00" > > Which is then followed by this: > > ; Convert [13x sbyte]* to sbyte *... > %cast210 = getelementptr [13 x sbyte]* %.LC0, uint 0, uint 0 ; > > Shouldn't the getelementptr have only one "uint 0"?...
2018 Sep 06
3
How to add Loongson ISA for Mips target?
...> int main(int argc, char *argv[]) { printf("Hello World\n"); return 0; } $ gcc -O0 -S hello.c $ cat hello.s .file 1 "hello.c" .section .mdebug.abi64 .previous .nan legacy .gnu_attribute 4, 1 .abicalls .rdata .align 3 .LC0: .ascii "Hello World\000" .text .align 2 .globl main .set nomips16 .set nomicromips .ent main .type main, @function main: .frame $fp,48,$31 # vars= 16, regs= 3/0, args= 0, gp= 0 .mask 0xd0000000,-8 .f...
2017 Apr 19
3
[cfe-dev] FE_INEXACT being set for an exact conversion from float to unsigned long long
...ut what the cast gets renamed to in the target layer so I can find where the sequence is emitted. > > > $ more llvm/lib/Target/X86//README-X86-64.txt > … > Are we better off using branches instead of cmove to implement FP to > unsigned i64? > > _conv: > ucomiss LC0(%rip), %xmm0 > cvttss2siq %xmm0, %rdx > jb L3 > subss LC0(%rip), %xmm0 > movabsq $-9223372036854775808, %rax > cvttss2siq %xmm0, %rdx > xorq %rax, %rdx > L3: > movq %rdx, %rax > ret &gt...
2011 Aug 02
1
Compile Speex for Blackfin in VisualDsp
...the same thing when I compile speex in visualdsp ? These are the errors I get from using the assembly version of vq_nbest: ? ..\..\..\..\algorithms\voice\speex\src\vq.c [Error ea5004] "C:\Users\coder\AppData\Local\Temp\acc22e8547f000\acc22e8547f001.s":482 Syntax Error in : LOOP vq_loopR2= LC0 = P4; syntax error is at or near text '='. Attempting error recovery by ignoring text until the ';' [Error ea5004] "C:\Users\coder\AppData\Local\Temp\acc22e8547f000\acc22e8547f001.s":483 Syntax Error in : LOOP_BEGIN vq_loopR2=; syntax error is at or near text '='....
2006 Dec 21
1
[LLVMdev] lli, llvm-ld and runtime libraries
Hello again, I'm exploring llvm's intermediary representation with this code: //////////////////////////////////// %.LC0 = internal constant [13 x sbyte] c"hello world\0A\00" declare int %puts(sbyte*) implementation int %main() { %cast210 = getelementptr [13 x sbyte]* %.LC0, long 0, long 0; call int %puts(sbyte* %cast210) ret int 0 } //////////////////////////////////// And I can compile and run i...
2018 Sep 06
2
How to add Loongson ISA for Mips target?
...gt; $ gcc -O0 -S hello.c >> >> $ cat hello.s >> .file 1 "hello.c" >> .section .mdebug.abi64 >> .previous >> .nan legacy >> .gnu_attribute 4, 1 >> .abicalls >> .rdata >> .align 3 >> .LC0: >> .ascii "Hello World\000" >> .text >> .align 2 >> .globl main >> .set nomips16 >> .set nomicromips >> .ent main >> .type main, @function >> main: >> .frame $fp,48,$31...
2010 Sep 10
4
[LLVMdev] using GCC LTO files as a frontend to dragonegg?
...llo.c #include <stdio.h> int hello () { printf ("Hello World\n"); } [mdaniels at dn002 dragonegg]$ gcc-4.5 -flto -c hello.c[mdaniels at dn002 dragonegg]$ gcc-4.5 -S -x lto hello.o [mdaniels at dn002 dragonegg]$ cat hello.s .file "hello.o" .section .rodata .LC0: .string "Hello World" .text .globl hello .type hello, @function hello: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 movq %rsp, %rbp .cfi_offset 6, -16 .cfi_def_cfa_register 6 movl $.LC0, %edi call puts...
2017 Apr 20
4
[cfe-dev] FE_INEXACT being set for an exact conversion from float to unsigned long long
...llvm/lib/Target/X86 so I’m trying to figure out what the cast gets renamed to in the target layer so I can find where the sequence is emitted. $ more llvm/lib/Target/X86//README-X86-64.txt … Are we better off using branches instead of cmove to implement FP to unsigned i64? _conv: ucomiss LC0(%rip), %xmm0 cvttss2siq %xmm0, %rdx jb L3 subss LC0(%rip), %xmm0 movabsq $-9223372036854775808, %rax cvttss2siq %xmm0, %rdx xorq %rax, %rdx L3: movq %rdx, %rax ret instead of _conv: movss LCPI1_0(%rip),...
2002 Dec 06
2
[LLVMdev] DSNode Question
LLVM, I am trying to equate two dsnodes across call boundries. On the Caller side we have an operand of form: sbyte * getelementptr ([20 x sbyte]* %.LC0, long 0, long 0) using getNodeForValue() yields a NULL pointer. On the Callee, the parameter is of form: sbyte * S and getNodeForValue works fine. Is there something special that must be done to access DNodes accessed using GEP? Thanks, Dave
2018 May 09
3
Ignored branch predictor hints
Hello, #define likely(x) __builtin_expect((x),1) // switch like char * b(int e) { if (likely(e == 0)) return "0"; else if (e == 1) return "1"; else return "f"; } GCC correctly prefers the first case: b(int): mov eax, OFFSET FLAT:.LC0 test edi, edi jne .L7 ret But Clang seems to ignore _builtin_expect hints in this case. b(int): # @b(int) cmp edi, 1 mov eax, offset .L.str.1 mov ecx, offset .L.str.2 cmove rcx, rax test edi, edi mov eax, offset .L.str cmovne rax, rcx ret https://godbolt.org/g/tuAVT7 ------...
2010 Jan 04
0
[LLVMdev] Tail Call Optimisation
On Monday 04 January 2010 05:16:40 Jeffrey Yasskin wrote: > On Sun, Jan 3, 2010 at 10:50 PM, Jon Harrop <jon at ffconsultancy.com> wrote: > > LLVM's TCO already handles mutual recursion. > > Only for fastcc functions Yes. > compiled with -tailcallopt, right? If you use the compiler, yes. > http://llvm.org/docs/CodeGenerator.html#tailcallopt > > I believe
2010 Jan 04
2
[LLVMdev] Tail Call Optimisation
On Sun, Jan 3, 2010 at 10:50 PM, Jon Harrop <jon at ffconsultancy.com> wrote: > On Monday 04 January 2010 03:33:06 Simon Harris wrote: >> On 04/01/2010, at 3:01 PM, Jon Harrop wrote: >> > I am certainly interested in tail calls because my HLVM project relies >> > upon LLVM's tail call elimination. However, I do not understand what tail >> > calls LLVM
2000 Apr 04
0
Obscure bug....?
...2$breaks cs <- h1$counts cl <- h2$counts mi <- h2$mids print(c(test=2,lbs=length(bs),lcs=length(cs),lbl=length(bl),lcl=length(cl))) } ind <- sub.vector(bs, bl) if(! is.vector(ind)) stop("Incompatible breaks") c0 <- rep(0, length(cl)) print(c(test=1.1, lc0=length(c0), lcl=length(cl), lcs=length(cs))) c0[ind[1:length(cs)]] <- cs print(c(test=1.2, lc0=length(c0), lcl=length(cl), lcs=length(cs))) ct <- c0 + cl print(c(test=1.3, lc0=length(c0), lcl=length(cl), lcs=length(cs))) int <- ct/(sum(ct)*diff(bl)) # This works for non-equidista...
2002 Nov 28
1
[LLVMdev] lli unreliable?
...7; printf("The value in the heap is \"%d\"\n", *ip); /* free() */ free(ip); return 0; } int main() { return Function(); } -------------- next part -------------- %FILE = type { [16 x long] } %__FILE = type { [16 x long] } %struct.__FILE = type { [16 x long] } %.LC0 = internal global [31 x sbyte] c"The value in the heap is \22%d\22\0A\00" ; <[31 x sbyte]*> [#uses=1] implementation ; Functions: internal void %__main() { bb0: ; No predecessors! ret void } declare int %printf(sbyte*, ...) internal sbyte* %Create() { bb0: ; No predecessor...
2003 Jun 03
1
[LLVMdev] Problem with `as'
Hi, I am trying to assemble a preety simple program, but the assembler is giving parse errors: =========================== %.LC0 = internal constant [17 x sbyte] c"Hello World %d \0A\00" %.LC1 = internal constant [17 x sbyte] c"yyyyyyyyyyyyyyy\0a\00" declare int "puts"(sbyte*) int "main"() { %cast1 = getelementptr [17 x sbyte]* %.LC0, long 0, long 0 %cast2 = getelementptr [17 x sby...
2008 Apr 30
0
[LLVMdev] newbie question regarding llvm-mingw
...d mingw32-binaries: http://llvm.org/releases/2.2/llvm-2.2-x86-mingw32.tar.bz2 I used the following hello_world program from the documentation: hello_world.ll: ---------------------------------------------------------------------------------- ; Declare the string constant as a global constant... @.LC0 = internal constant [13 x i8] c"hello world\0A\00" ; [13 x i8]* ; External declaration of the puts function declare i32 @puts(i8 *) ; i32(i8 *)* ; Definition of main function define i32 @main() {...
2007 Nov 08
3
[LLVMdev] Newbie JITter
...sses.h" #include "llvm/Target/TargetData.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetMachineRegistry.h" #include <iostream> using namespace llvm; int main() { sys::PrintStackTraceOnErrorSignal(); const char* assembler = "@.LC0 = internal constant [19 x i8] c\"cooking with gas!\\0A\\00 \" ; [11 x i8]*\n" "\n" "declare i32 @puts(i8 *) ; i32(i8 *)* \n" "\n" "define i32 @main() { ; i...
2002 Nov 07
5
From RISKS: secret scrubbing code removed by optimizers
This showed up in RISKS and no one has mentioned it here yet, so.. OpenSSH contains lots of code like: char *password = read_passphrase(prompt, 0); [do stuff] memset(password, 0, strlen(password));
2017 Oct 13
2
Machine Scheduler on Power PC: Latency Limit and Register Pressure
...ld r11, 24(r3) ld r0, 32(r3) ld r12, 24(r4) ld r30, 32(r4) ld r3, 40(r3) ld r4, 40(r4) divd r5, r5, r6 divd r6, r7, r8 divd r7, r9, r10 divd r9, r0, r30 divd r4, r3, r4 divd r8, r11, r12 addis r3, r2, .LC0 at toc@ha ld r30, -16(r1) # 8-byte Folded Reload ld r10, .LC0 at toc@l(r3) li r3, 0 std r5, 0(r10) std r6, 8(r10) std r7, 16(r10) std r9, 32(r10) std r8, 24(r10) std r4, 40(r10) blr -- Thank you, Stefa...