search for: wenwangtoddy

Displaying 20 results from an estimated 36 matches for "wenwangtoddy".

2018 Jan 06
2
Relationship between clang, opt and llc
.... > I don't know if there is a command line option to turn that off. > > I recommend passing "-O1 -Xclang -disable-llvm-passes" to clang. Passing > -O0 very specifically means disable optimizations. > > ~Craig > > On Sat, Jan 6, 2018 at 12:25 PM, toddy wang <wenwangtoddy at gmail.com> > wrote: > >> @Craig and @Michael >> >> After installing clang-5.0 (download from http://releases.llvm.org, does >> not have Flang build's slowdown mention above), >> >> 1. clang++ -O0 -Xclang -disable-O0-optnone -Xclang -disable-llvm-p...
2018 Jan 06
0
Relationship between clang, opt and llc
...flang" which is a fortran compiler and maintained by different people than the LLVM/clang community? But then compiling C/C++ code? Their bug database should be used for filing bugs against the fortran compiler not a C/C++ compiler issue. ~Craig On Sat, Jan 6, 2018 at 1:04 PM, toddy wang <wenwangtoddy at gmail.com> wrote: > Thanks a lot, it is clear to me now. > > BTW, for Clang's slowdown, I submit an issue here: https://github.com/ > flang-compiler/flang/issues/356 > > I have no idea about the root cause. > Maybe due to debug symbols. But, I already use -DCMAKE_BUI...
2018 Jan 09
1
Relationship between clang, opt and llc
//mllvm Options can be dumped by clang -v -help -mllvm and clang -v --help-hidden --> //mllvm Options can be dumped by clang -v -help -mllvm and clang -v --help-hidden -mllvm On Tue, Jan 9, 2018 at 3:09 AM, toddy wang <wenwangtoddy at gmail.com> wrote: > Thanks, Craig. > > So, clang -Xclang -disable-llvm-passes actually disables all the LLVM > passed populated by clang so that there is no middle-end optimization on bc > files. > > clang -O2 LULESH.c //clang is the driver, invoking cc1, cc1as, ld >...
2018 Jan 09
3
Relationship between clang, opt and llc
...-dce'. Try: > 'clang (LLVM option parsing) -help' > clang (LLVM option parsing): Did you mean '-mv4'? > > > On Mon, Jan 8, 2018 at 12:48 PM, Mehdi AMINI <joker.eph at gmail.com> wrote: > >> >> >> 2018-01-08 8:59 GMT-08:00 toddy wang <wenwangtoddy at gmail.com>: >> >>> >>> >>> On Mon, Jan 8, 2018 at 11:53 AM, Mehdi AMINI <joker.eph at gmail.com> >>> wrote: >>> >>>> >>>> >>>> 2018-01-08 8:41 GMT-08:00 toddy wang <wenwangtoddy at gmail.com>: &...
2018 Jan 08
2
Relationship between clang, opt and llc
2018-01-08 8:59 GMT-08:00 toddy wang <wenwangtoddy at gmail.com>: > > > On Mon, Jan 8, 2018 at 11:53 AM, Mehdi AMINI <joker.eph at gmail.com> wrote: > >> >> >> 2018-01-08 8:41 GMT-08:00 toddy wang <wenwangtoddy at gmail.com>: >> >>> Hi Medhi, >>> >>> It seems -mllvm does...
2018 Jan 09
0
Relationship between clang, opt and llc
...(LLVM option parsing) -help' >> clang (LLVM option parsing): Did you mean '-mv4'? >> >> >> On Mon, Jan 8, 2018 at 12:48 PM, Mehdi AMINI <joker.eph at gmail.com> wrote: >> >>> >>> >>> 2018-01-08 8:59 GMT-08:00 toddy wang <wenwangtoddy at gmail.com>: >>> >>>> >>>> >>>> On Mon, Jan 8, 2018 at 11:53 AM, Mehdi AMINI <joker.eph at gmail.com> >>>> wrote: >>>> >>>>> >>>>> >>>>> 2018-01-08 8:41 GMT-08:00 toddy wang...
2018 Jan 06
2
Relationship between clang, opt and llc
...b.out; ./b.out 20 runtime: 9.096919e+00 Apparently, clang++ -O0 -Xclang -disable-O0-optnone does not work as expected. The conclusion seems to be -Xclang -disable-O0-optnone works when clang optimization level is O1/O2/O3, not O0. Any comments? On Sat, Jan 6, 2018 at 2:30 AM, toddy wang <wenwangtoddy at gmail.com> wrote: > What I am trying is to compile a program with different sets of > optimization flags. > If there is no fine-grained control over clang optimization flags, it > would be impossible to achieve what I intend. > > Although there is fine-grained control via o...
2018 Jan 06
0
Relationship between clang, opt and llc
...s all functions to be marked noinline. I don't know if there is a command line option to turn that off. I recommend passing "-O1 -Xclang -disable-llvm-passes" to clang. Passing -O0 very specifically means disable optimizations. ~Craig On Sat, Jan 6, 2018 at 12:25 PM, toddy wang <wenwangtoddy at gmail.com> wrote: > @Craig and @Michael > > After installing clang-5.0 (download from http://releases.llvm.org, does > not have Flang build's slowdown mention above), > > 1. clang++ -O0 -Xclang -disable-O0-optnone -Xclang -disable-llvm-passes -c > -emit-llvm -o a.bc...
2018 Jan 09
0
Relationship between clang, opt and llc
...g): Unknown command line argument '-dce'. Try: 'clang (LLVM option parsing) -help' clang (LLVM option parsing): Did you mean '-mv4'? On Mon, Jan 8, 2018 at 12:48 PM, Mehdi AMINI <joker.eph at gmail.com> wrote: > > > 2018-01-08 8:59 GMT-08:00 toddy wang <wenwangtoddy at gmail.com>: > >> >> >> On Mon, Jan 8, 2018 at 11:53 AM, Mehdi AMINI <joker.eph at gmail.com> wrote: >> >>> >>> >>> 2018-01-08 8:41 GMT-08:00 toddy wang <wenwangtoddy at gmail.com>: >>> >>>> Hi Medhi, >&g...
2018 Jan 08
2
Relationship between clang, opt and llc
2018-01-08 8:41 GMT-08:00 toddy wang <wenwangtoddy at gmail.com>: > Hi Medhi, > > It seems -mllvm does not work as expected. Anything wrong? > > [twang15 at c92 temp]$ clang++ -O3 -mllvm *-deadargelim* LULESH.cc > clang (LLVM option parsing): Unknown command line argument > '-deadargelim'. Try: 'clang (LLVM opt...
2018 Jan 09
1
Is -disable-llvm-passes and -disable-llvm-optzns different?
...-hidden #Succeed opt --help-hidden #Succeed llc -help #Succeed llc --help #Succeed llc -help-hidden #Succeed llc --help-hidden #Succeed lld -help #Succeed lld --help #Succeed lld -help-hidden #Fail (may be no hidden option) lld --help-hidden # Fail On Tue, Jan 9, 2018 at 2:07 AM, toddy wang <wenwangtoddy at gmail.com> wrote: > clang -O3 -mllvm -help -c LULESH.cc succeeds. > > On Tue, Jan 9, 2018 at 2:05 AM, toddy wang <wenwangtoddy at gmail.com> wrote: > >> Quick results: >> >> [twang15 at c89 temp]$ clang -mllvm -help >> clang-5.0: error: no input fil...
2018 Jan 08
0
Relationship between clang, opt and llc
On Mon, Jan 8, 2018 at 11:53 AM, Mehdi AMINI <joker.eph at gmail.com> wrote: > > > 2018-01-08 8:41 GMT-08:00 toddy wang <wenwangtoddy at gmail.com>: > >> Hi Medhi, >> >> It seems -mllvm does not work as expected. Anything wrong? >> >> [twang15 at c92 temp]$ clang++ -O3 -mllvm *-deadargelim* LULESH.cc >> clang (LLVM option parsing): Unknown command line argument >> '-deadargelim&...
2018 Jan 07
2
Relationship between clang, opt and llc
...9;t make much sense for 'llc' because llc mostly runs backend passes, which are much more difficult to construct custom pipelines for (backend passes are often required for correctness or have complex ordering requirements). -- Sean Silva On Jan 6, 2018 7:35 PM, "toddy wang" <wenwangtoddy at gmail.com> wrote: @Sean, do you mean llc ? For llc 4.0 and llc 5.0, I cannot find -lto-newpm-passes option, is it a hidden one? On Sat, Jan 6, 2018 at 7:37 PM, Sean Silva <chisophugis at gmail.com> wrote: > > > On Jan 5, 2018 11:30 PM, "toddy wang via llvm-dev" &lt...
2018 Jan 06
1
Relationship between clang, opt and llc
...d that clang-5.0 is extremely slow. Even it is built with -DCMAKE_BUILD_TYPE=Release For building LULESH.cc, it gets stucked at linkage stage. I build it as instructed from here https://github.com/flang-compiler/flang Maybe I should submit a bug. On Fri, Jan 5, 2018 at 8:41 PM, toddy wang <wenwangtoddy at gmail.com> wrote: > Craig, thanks a lot! > > I'm actually confused by clang optimization flags. > > If I run clang -help, it will show many optimizations (denoted as set A) > and non-optimization options (denoted as set B). > If I run llvm-as < /dev/null | opt -O...
2018 Jan 08
2
Relationship between clang, opt and llc
2018-01-07 23:16 GMT-08:00 toddy wang <wenwangtoddy at gmail.com>: > -mllvm <value> Additional arguments to forward to LLVM's option > processing > > This is dumped by clang. I am not sure what I am supposed to put as value > in order to tune unrolling/inlining threshold. > As the help says, this is used to...
2018 Jan 06
3
Relationship between clang, opt and llc
...just want to compile their code. So I don't think there's a way to pass just -dse to clang. opt on the other hand is more of a utility for developers of llvm that provides fine grained control of optimizations for testing purposes. ~Craig On Fri, Jan 5, 2018 at 5:41 PM, toddy wang <wenwangtoddy at gmail.com> wrote: > Craig, thanks a lot! > > I'm actually confused by clang optimization flags. > > If I run clang -help, it will show many optimizations (denoted as set A) > and non-optimization options (denoted as set B). > If I run llvm-as < /dev/null | opt -O...
2018 Jan 08
0
Relationship between clang, opt and llc
...adargelim* LULESH.cc clang (LLVM option parsing): Unknown command line argument 'deadargelim'. Try: 'clang (LLVM option parsing) -help' -Tao On Mon, Jan 8, 2018 at 11:12 AM, Mehdi AMINI <joker.eph at gmail.com> wrote: > > > 2018-01-07 23:16 GMT-08:00 toddy wang <wenwangtoddy at gmail.com>: > >> -mllvm <value> Additional arguments to forward to LLVM's option >> processing >> >> This is dumped by clang. I am not sure what I am supposed to put as value >> in order to tune unrolling/inlining threshold. >> > &g...
2018 Jan 08
1
Relationship between clang, opt and llc
On Jan 7, 2018 8:46 PM, "toddy wang" <wenwangtoddy at gmail.com> wrote: @Sean, here is my summary of several tools. Format: (ID,tool, input->output, timing, customization, questions) 1. llc, 1 bc -> 1 obj, back-end compile-time (code generation and machine-dependent optimizations), Difficult to customize pipeline, N/A 2. LLD: all bc f...
2018 Jan 08
0
Relationship between clang, opt and llc
...because llc mostly runs > backend passes, which are much more difficult to construct custom pipelines > for (backend passes are often required for correctness or have complex > ordering requirements). > > -- Sean Silva > > > On Jan 6, 2018 7:35 PM, "toddy wang" <wenwangtoddy at gmail.com> wrote: > > @Sean, do you mean llc ? > For llc 4.0 and llc 5.0, I cannot find -lto-newpm-passes option, is it a > hidden one? > > On Sat, Jan 6, 2018 at 7:37 PM, Sean Silva <chisophugis at gmail.com> wrote: > >> >> >> On Jan 5, 2018 11:30...
2018 Jan 06
0
Relationship between clang, opt and llc
...on't think there's a way to pass just -dse to clang. > > opt on the other hand is more of a utility for developers of llvm that > provides fine grained control of optimizations for testing purposes. > > > > ~Craig > > On Fri, Jan 5, 2018 at 5:41 PM, toddy wang <wenwangtoddy at gmail.com> wrote: > >> Craig, thanks a lot! >> >> I'm actually confused by clang optimization flags. >> >> If I run clang -help, it will show many optimizations (denoted as set A) >> and non-optimization options (denoted as set B). >> If I run...