Leslie Zhai via llvm-dev
2017-Dec-21 15:14 UTC
[llvm-dev] llc: Unknown command line argument '-debug-only=isel'
Hi LLVM developers, llc -march=mips -debug-only=isel was able to work in Nov 8 2017 https://reviews.llvm.org/D39723 But it doesn't work now: $ clang --version LLVM China clang version 6.0.0 (git at github.com:llvm-mirror/clang.git 9b7b03045ee9b5622028537266aafeb9ea218ac1) (git at github.com:llvm-mirror/llvm.git 3a26601a88394c02603b8756527c55df9ab94d78) (based on LLVM 6.0.0svn) Target: x86_64-redhat-linux Thread model: posix InstalledDir: /data/project/xiangzhai/llvm/build/./bin $ llc --version LLVM (http://llvm.org/): LLVM version 6.0.0svn Optimized build. Default target: x86_64-redhat-linux Host CPU: broadwell llc: Unknown command line argument '-debug-only=isel'. Try: '/data/project/xiangzhai/llvm/build/bin/llc -help' llc: Did you mean '-debug-pass=isel'? I couldn't grep debug-only command flags or options via git log, please give me some hint, thanks a lot! -- Regards, Leslie Zhai - https://reviews.llvm.org/p/xiangzhai/
Francis Visoiu Mistrih via llvm-dev
2017-Dec-21 15:46 UTC
[llvm-dev] llc: Unknown command line argument '-debug-only=isel'
Hi Leslie,> On 21 Dec 2017, at 15:14, Leslie Zhai via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi LLVM developers, > > llc -march=mips -debug-only=isel was able to work in Nov 8 2017 https://reviews.llvm.org/D39723 > > But it doesn't work now: > > $ clang --version > LLVM China clang version 6.0.0 (git at github.com:llvm-mirror/clang.git 9b7b03045ee9b5622028537266aafeb9ea218ac1) (git at github.com:llvm-mirror/llvm.git 3a26601a88394c02603b8756527c55df9ab94d78) (based on LLVM 6.0.0svn) > Target: x86_64-redhat-linux > Thread model: posix > InstalledDir: /data/project/xiangzhai/llvm/build/./bin > $ llc --version > LLVM (http://llvm.org/): > LLVM version 6.0.0svn > Optimized build.I see you’re running an optimized build. You need a debug build to use "-debug-only”. I suggest you take a look at include/llvm/Support/Debug.h and the `DEBUG` macro. Cheers, — Francis> Default target: x86_64-redhat-linux > Host CPU: broadwell > > llc: Unknown command line argument '-debug-only=isel'. Try: '/data/project/xiangzhai/llvm/build/bin/llc -help' > llc: Did you mean '-debug-pass=isel'? > > I couldn't grep debug-only command flags or options via git log, please give me some hint, thanks a lot! > > -- > Regards, > Leslie Zhai - https://reviews.llvm.org/p/xiangzhai/ > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Leslie Zhai via llvm-dev
2017-Dec-21 15:51 UTC
[llvm-dev] llc: Unknown command line argument '-debug-only=isel'
在 2017年12月21日 23:46, Francis Visoiu Mistrih 写道:> Hi Leslie, > >> On 21 Dec 2017, at 15:14, Leslie Zhai via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> Hi LLVM developers, >> >> llc -march=mips -debug-only=isel was able to work in Nov 8 2017 https://reviews.llvm.org/D39723 >> >> But it doesn't work now: >> >> $ clang --version >> LLVM China clang version 6.0.0 (git at github.com:llvm-mirror/clang.git 9b7b03045ee9b5622028537266aafeb9ea218ac1) (git at github.com:llvm-mirror/llvm.git 3a26601a88394c02603b8756527c55df9ab94d78) (based on LLVM 6.0.0svn) >> Target: x86_64-redhat-linux >> Thread model: posix >> InstalledDir: /data/project/xiangzhai/llvm/build/./bin >> $ llc --version >> LLVM (http://llvm.org/): >> LLVM version 6.0.0svn >> Optimized build. > I see you’re running an optimized build. > > You need a debug build to use "-debug-only”. I suggest you take a look at include/llvm/Support/Debug.h and the `DEBUG` macro.-DCMAKE_BUILD_TYPE=Debug will eat up all my memory when linking... I experienced it.> > Cheers, > > — > Francis > >> Default target: x86_64-redhat-linux >> Host CPU: broadwell >> >> llc: Unknown command line argument '-debug-only=isel'. Try: '/data/project/xiangzhai/llvm/build/bin/llc -help' >> llc: Did you mean '-debug-pass=isel'? >> >> I couldn't grep debug-only command flags or options via git log, please give me some hint, thanks a lot! >> >> -- >> Regards, >> Leslie Zhai - https://reviews.llvm.org/p/xiangzhai/ >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-- Regards, Leslie Zhai - https://reviews.llvm.org/p/xiangzhai/
Alex Bradbury via llvm-dev
2017-Dec-21 15:54 UTC
[llvm-dev] llc: Unknown command line argument '-debug-only=isel'
On 21 December 2017 at 15:51, Leslie Zhai via llvm-dev <llvm-dev at lists.llvm.org> wrote:> > > 在 2017年12月21日 23:46, Francis Visoiu Mistrih 写道: >> >> Hi Leslie, >> >>> On 21 Dec 2017, at 15:14, Leslie Zhai via llvm-dev >>> <llvm-dev at lists.llvm.org> wrote: >>> >>> Hi LLVM developers, >>> >>> llc -march=mips -debug-only=isel was able to work in Nov 8 2017 >>> https://reviews.llvm.org/D39723 >>> >>> But it doesn't work now: >>> >>> $ clang --version >>> LLVM China clang version 6.0.0 (git at github.com:llvm-mirror/clang.git >>> 9b7b03045ee9b5622028537266aafeb9ea218ac1) >>> (git at github.com:llvm-mirror/llvm.git >>> 3a26601a88394c02603b8756527c55df9ab94d78) (based on LLVM 6.0.0svn) >>> Target: x86_64-redhat-linux >>> Thread model: posix >>> InstalledDir: /data/project/xiangzhai/llvm/build/./bin >>> $ llc --version >>> LLVM (http://llvm.org/): >>> LLVM version 6.0.0svn >>> Optimized build. >> >> I see you’re running an optimized build. >> >> You need a debug build to use "-debug-only”. I suggest you take a look at >> include/llvm/Support/Debug.h and the `DEBUG` macro. > > -DCMAKE_BUILD_TYPE=Debug will eat up all my memory when linking... I > experienced it.I have good success with -DBUILD_SHARED_LIBS=True -DLLVM_USE_SPLIT_DWARF=True. You'll also have better results if gold is your system linker. If you have a recent LLD installed, you can set -DLLVM_ENABLE_LLD=True. Best, Alex
Leslie Zhai via llvm-dev
2017-Dec-21 16:09 UTC
[llvm-dev] llc: Unknown command line argument '-debug-only=isel'
在 2017年12月21日 23:54, Alex Bradbury 写道:> On 21 December 2017 at 15:51, Leslie Zhai via llvm-dev > <llvm-dev at lists.llvm.org> wrote: >> >> 在 2017年12月21日 23:46, Francis Visoiu Mistrih 写道: >>> Hi Leslie, >>> >>>> On 21 Dec 2017, at 15:14, Leslie Zhai via llvm-dev >>>> <llvm-dev at lists.llvm.org> wrote: >>>> >>>> Hi LLVM developers, >>>> >>>> llc -march=mips -debug-only=isel was able to work in Nov 8 2017 >>>> https://reviews.llvm.org/D39723 >>>> >>>> But it doesn't work now: >>>> >>>> $ clang --version >>>> LLVM China clang version 6.0.0 (git at github.com:llvm-mirror/clang.git >>>> 9b7b03045ee9b5622028537266aafeb9ea218ac1) >>>> (git at github.com:llvm-mirror/llvm.git >>>> 3a26601a88394c02603b8756527c55df9ab94d78) (based on LLVM 6.0.0svn) >>>> Target: x86_64-redhat-linux >>>> Thread model: posix >>>> InstalledDir: /data/project/xiangzhai/llvm/build/./bin >>>> $ llc --version >>>> LLVM (http://llvm.org/): >>>> LLVM version 6.0.0svn >>>> Optimized build. >>> I see you’re running an optimized build. >>> >>> You need a debug build to use "-debug-only”. I suggest you take a look at >>> include/llvm/Support/Debug.h and the `DEBUG` macro. >> -DCMAKE_BUILD_TYPE=Debug will eat up all my memory when linking... I >> experienced it. > I have good success with -DBUILD_SHARED_LIBS=True > -DLLVM_USE_SPLIT_DWARF=True. You'll also have better results if gold > is your system linker. If you have a recent LLD installed, you can set > -DLLVM_ENABLE_LLD=True.I will try those build options. I installed LLD to `/opt/llvm-svn/bin/ld.lld` $ ld.lld --version LLD 6.0.0 (trunk 317966) (compatible with GNU linkers) And I use Fedora now, but I doesn't use Gentoo (10+ years) or ArchLinux (4+ years) any more, Ah! how do I act like an old man ... Fedora 25 use GCC 6.4.1 and LLVM 3.9.1 by default, so my migration for DragonEgg is based on GCC 6.x and LLVM 3.9 firstly :)> > Best, > > Alex-- Regards, Leslie Zhai - https://reviews.llvm.org/p/xiangzhai/
Adrian Prantl via llvm-dev
2017-Dec-21 17:14 UTC
[llvm-dev] llc: Unknown command line argument '-debug-only=isel'
> On Dec 21, 2017, at 7:46 AM, Francis Visoiu Mistrih via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi Leslie, > >> On 21 Dec 2017, at 15:14, Leslie Zhai via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> Hi LLVM developers, >> >> llc -march=mips -debug-only=isel was able to work in Nov 8 2017 https://reviews.llvm.org/D39723 >> >> But it doesn't work now: >> >> $ clang --version >> LLVM China clang version 6.0.0 (git at github.com:llvm-mirror/clang.git 9b7b03045ee9b5622028537266aafeb9ea218ac1) (git at github.com:llvm-mirror/llvm.git 3a26601a88394c02603b8756527c55df9ab94d78) (based on LLVM 6.0.0svn) >> Target: x86_64-redhat-linux >> Thread model: posix >> InstalledDir: /data/project/xiangzhai/llvm/build/./bin >> $ llc --version >> LLVM (http://llvm.org/): >> LLVM version 6.0.0svn >> Optimized build. > > I see you’re running an optimized build. > > You need a debug build to use "-debug-only”. I suggest you take a look at include/llvm/Support/Debug.h and the `DEBUG` macro.You don't need a debug build for this to work, enabling assertions should be enough. Try ReleaseAssert or RelWithDebInfoAssert. -- adrian> > Cheers, > > — > Francis > >> Default target: x86_64-redhat-linux >> Host CPU: broadwell >> >> llc: Unknown command line argument '-debug-only=isel'. Try: '/data/project/xiangzhai/llvm/build/bin/llc -help' >> llc: Did you mean '-debug-pass=isel'? >> >> I couldn't grep debug-only command flags or options via git log, please give me some hint, thanks a lot! >> >> -- >> Regards, >> Leslie Zhai - https://reviews.llvm.org/p/xiangzhai/ >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev