Displaying 1 result from an estimated 1 matches for "_z9nakedtestii".
Did you mean:
__z9nakedtestii
2012 Nov 10
0
[LLVMdev] LLVM IR and Naked functions in C/C++
...ined results are being introduced
First to show what I'm discussing:
test.cpp:
__attribute((noinline, naked)) int NakedTest(int value, int value2)
{
asm("");
}
Example using svn r167616 of clang/llvm:
clang -S test.cpp
.section __TEXT,__text,regular,pure_instructions
.globl __Z9NakedTestii
.align 4, 0x90
__Z9NakedTestii: ## @_Z9NakedTestii
.cfi_startproc
## BB#0: ## %entry
movl %edi, -8(%rbp)
movl %esi, -12(%rbp)
## InlineAsm Start
## InlineAsm End
ud2
.cfi_endproc
The first two highlighted lines are overwriting memory u...