[PATCH] D99599: [NewPM] Add an option to dump pass structure
Haowei Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 29 11:14:34 PDT 2021
haowei added a comment.
In D99599#2726252 <https://reviews.llvm.org/D99599#2726252>, @evgeny777 wrote:
> @haowei What are LLVM configuration options? Also please send output from
>
> /opt/s/w/ir/x/w/staging/llvm_build/bin/clang -flegacy-pass-manager -fdebug-pass-structure -O0 -S -emit-llvm /opt/s/w/ir/x/w/llvm-project/clang/test/Driver/debug-pass-structure.c -o /dev/null 2>&1
Full cmake command line is:
'/local_path/local_path/bin/cmake',
'-GNinja',
'-DCMAKE_MAKE_PROGRAM=/local_path/local_path/ninja',
'-DCMAKE_INSTALL_PREFIX=',
'-DCMAKE_C_COMPILER=/local_path/local_path/bin/clang',
'-DCMAKE_CXX_COMPILER=/local_path/local_path/bin/clang++',
'-DCMAKE_ASM_COMPILER=/local_path/local_path/bin/clang',
'-DCMAKE_AR=/local_path/local_path/bin/llvm-ar',
'-DCMAKE_LINKER=/local_path/local_path/bin/ld.lld',
'-DCMAKE_NM=/local_path/local_path/bin/llvm-nm',
'-DCMAKE_OBJCOPY=/local_path/local_path/bin/llvm-objcopy',
'-DCMAKE_OBJDUMP=/local_path/local_path/bin/llvm-objdump',
'-DCMAKE_RANLIB=/local_path/local_path/bin/llvm-ranlib',
'-DCMAKE_READELF=/local_path/local_path/bin/llvm-readelf',
'-DCMAKE_STRIP=/local_path/local_path/bin/llvm-strip',
'-DCMAKE_SYSROOT=/local_path/local_path/linux',
'-DZLIB_INCLUDE_DIR=/local_path/staging/zlib_install/include',
'-DZLIB_LIBRARY=/local_path/staging/zlib_install/lib/libz.a',
'-DLIBXML2_INCLUDE_DIR=/local_path/staging/libxml2_install/include/libxml2',
'-DLIBXML2_LIBRARY=/local_path/staging/libxml2_install/lib/libxml2.a',
'-DCMAKE_SHARED_LINKER_FLAGS=-static-libstdc++',
'-DCMAKE_MODULE_LINKER_FLAGS=-static-libstdc++',
'-DCMAKE_EXE_LINKER_FLAGS=-static-libstdc++',
'-DLLVM_ENABLE_LTO=False',
'-DLLVM_ENABLE_ASSERTIONS=True',
'-DLINUX_aarch64-unknown-linux-gnu_SYSROOT=/local_path/local_path/linux',
'-DLINUX_armv7-unknown-linux-gnueabihf_SYSROOT=/local_path/local_path/linux',
'-DLINUX_i386-unknown-linux-gnu_SYSROOT=/local_path/local_path/linux',
'-DLINUX_x86_64-unknown-linux-gnu_SYSROOT=/local_path/local_path/linux',
'-DFUCHSIA_SDK=/local_path/local_path/sdk',
'-C',
'/local_path/llvm-project/clang/cmake/caches/Fuchsia-stage2.cmake',
'/local_path/llvm-project/llvm',
I am currently doing a local build to see if I can generate the output you required. We suspect it may be related to `ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER` which is enabled in `clang/cmake/caches/Fuchsia-stage2.cmake` we used.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99599/new/
https://reviews.llvm.org/D99599
More information about the cfe-commits
mailing list