Displaying 1 result from an estimated 1 matches for "r167616".
Did you mean:
167616
2012 Nov 10
0
[LLVMdev] LLVM IR and Naked functions in C/C++
...dent in the LLVM IR itself. With the svn builds of clang, there's an additional problem where undefined 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)
## I...