Displaying 3 results from an estimated 3 matches for "_dmain".
Did you mean:
__main
2009 Jan 09
1
[LLVMdev] naked assembler / function written entirely in asm
...ar6retvalFZm() noinline {
entry:
call void asm sideeffect "movl $0, %eax ; movl $1, %edx ; ret ",
"i,i,~{eax},~{edx}"(i32 255, i32 170)
unreachable
}
define x86_stdcallcc i64 @_D3bar7retval2FZm() {
entry:
ret i64 730144440575
}
define x86_stdcallcc i32 @_Dmain({ i32, { i32, i8* }* } %unnamed) {
entry:
%tmp = call x86_stdcallcc i64 @_D3bar6retvalFZm() ;
<i64> [#uses=1]
%tmp1 = call x86_stdcallcc i64 @_D3bar7retval2FZm() ;
<i64> [#uses=1]
%tmp2 = call i32 (i8*, ...)* @printf(i8* getelementptr ([...
2016 Oct 03
2
ThinLTO: module-scope inline assembly blocks
...quot;
module asm "\09ret "
module asm "\09.size\09foo, .-foo"
module asm ""
declare zeroext i16 @foo(i16 zeroext) #0
define i32 @_simplefunction() #1 {
ret i32 1
}
```
Another module MAIN contains a function that calls ASM's `simplefunction()`.
```
define i32 @_Dmain({ i64, { i64, i8* }* } %unnamed) #0 {
%1 = call i32 @_simplefunction() #1
ret i32 %1
}
declare i32 @_simplefunction() #1
```
Then these two modules are passed to the linker, using ThinLTO, thus
bitcode files with .o extension and module summaries added. The linker
reports a multiple definition...
2008 Jun 06
2
[LLVMdev] Trouble with inline asm
...1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:8"
target triple = "i686-unknown-linux-gnu"
@.stringliteral = internal constant [4 x i8] c"%d\0A\00"
; <[4 x i8]*> [#uses=1]
declare i32 @printf(i8*, ...)
define fastcc i32 @_Dmain() {
entry_tangotests.asm1.main:
%i = alloca i32 ; <i32*> [#uses=4]
store i32 12, i32* %i
%tmp = load i32* %i ; <i32> [#uses=1]
%tmp1 = call i32 (i8*, ...)* @printf( i8* getelementptr ([4 x
i8]* @.stringliteral, i32 0, i32 0), i32 %tmp...