search for: allocfunct

Displaying 1 result from an estimated 1 matches for "allocfunct".

Did you mean: allocfuncs
2018 Jul 18
2
Why Clang is unpacking my StructType Function arguments
Hi: We are currently building an internal solution based on LLVM/Clang technologies which involves generating LLVM IR based on Bitcode generated by Clang from C codes. We have a C function which prototype looks like the following: typedef struct { int (*allocFunction)(void* x, void* y); void* YY; } Type4; int bar (Type1 *x, Type2 *y, Type3 *z, Type4 bar) When we compile this code uses Clang 6 into x86_64-apple-macos, the generated function in IR has the type: ; Function Attrs: noinline nounwind optnone ssp uwtable define i32 @bar(%struct.Type1*,...