Displaying 1 result from an estimated 1 matches for "elshbaky".
Did you mean:
elshobaky
2014 Feb 25
2
[LLVMdev] noinline attribute problem
...eturned results
are correct '8'.
Any idea? Please advice as I need to get the assembly code of the
'getTexSize' function alone.
Note: I compile using the following commands
clang -O2 -emit-llvm test.cpp -c -o test.bc
lli -use-mcjit test.bc
Thanks in advance
Sara Elshbaky
=============================
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
__attribute__((noinline))
int getTexSize(int n)
{
if((n & (n - 1)) != 0) // determining if an integer is not a power of 2
{
n-- ;
n |= n >> 1;...