search for: larges_struct

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

2011 Jul 29
1
[LLVMdev] alignment checking in isSafeToEliminateVarargsCast
...e results. $ clang -ccc-host-triple mipsel-unknown-linux -ccc-clang-archs mipsel foo.c -o foo.ll -emit-llvm -O3 -S // foo.c // adapted from test-suite/SingleSource/UnitTests/2003-05-07-VarArg s.c #include <stdarg.h> typedef struct DWordS_struct { int i; char c; } DWordS; typedef struct LargeS_struct { int i; double d; DWordS* ptr; int j; } LargeS; void test(char *fmt,...); int main() { DWordS dw = { 18, 'a' }; LargeS ls = { 21, 22.0, &dw, 23 }; test("DQL", dw, ls); return 0; } After code generation, clang runs several llvm IR optimization passes including Ins...