Displaying 2 results from an estimated 2 matches for "llvmfoldingbuilderref".
2013 May 13
0
[LLVMdev] Problem with llvm-c
Hi James,
On 13/05/13 00:25, James Courtier-Dutton wrote:
> Hi,
>
> I have the following program (attached)
>
> I produces, using the llvm-c API, this:
> ; ModuleID = './llvm-test.bc'
>
> define i32 @test2() {
> EntryBlock:
> ret i32 3
> }
>
> But, I want it to produce this:
> ; ModuleID = './llvm-test.bc'
>
> define i32 @test2()
2013 May 12
2
[LLVMdev] Problem with llvm-c
Hi,
I have the following program (attached)
I produces, using the llvm-c API, this:
; ModuleID = './llvm-test.bc'
define i32 @test2() {
EntryBlock:
ret i32 3
}
But, I want it to produce this:
; ModuleID = './llvm-test.bc'
define i32 @test2() {
EntryBlock:
%1 = add i32 1, 2
ret i32 %1
}
I.e. With the "add" in there.
llvm appears to be doing some optimization on