[cfe-users] Using clang LTO with POLLY

2019-05-13 Thread Brandon Simmons via cfe-users
I'm hacking on a compiler with a fairly complicated build system and trying to experiment with POLLY (https://polly.llvm.org) alongside LLVM LTO. The general shape of the last part of compilation looks like: opt-6.0 -O2 -enable-tbaa -tbaa '-relocation-model=static' application.ll -o applicati

Re: [cfe-users] Fwd: Re: [llvm-dev] Overriding macro values defined in source code

2019-05-13 Thread Sudhindra kulkarni via cfe-users
Thanks Richard for the answer. I have another question regarding the include(-I) option. If we have a c file called cfile.c and a header file called header.h both in the same directory say (dir x). cfile.c includes header.h as shown below #include "header.h" And if in some other directory say (d

Re: [cfe-users] Fwd: Re: [llvm-dev] Overriding macro values defined in source code

2019-05-13 Thread Sudhindra kulkarni via cfe-users
Hi Richard, Thanks for the quick response. I tried the -I- option. I ran the below command clang.exe -E path of cfile.c -I path of dir y -I- With this I get the below error clang.exe:error :-I- not supported , please use -iquote instead. I tried using -iquote as well clang.exe