[PATCH] D69124: [clang][driver] Print compilation phases with indentation.

Michael Liao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 17 11:49:24 PDT 2019


hliao added a comment.

In D69124#1713360 <https://reviews.llvm.org/D69124#1713360>, @tra wrote:

> Could you give an example of before/after output?


For HIP

  $ clang -x hip -ccc-print-phases --cuda-gpu-arch=gfx900 --cuda-gpu-arch=gfx906 -c ~/dummy.cpp 
       0: input, "/home/michliao/dummy.cpp", hip, (host-hip)
      1: preprocessor, {0}, hip-cpp-output, (host-hip)
     2: compiler, {1}, ir, (host-hip)
          3: input, "/home/michliao/dummy.cpp", hip, (device-hip, gfx900)
         4: preprocessor, {3}, hip-cpp-output, (device-hip, gfx900)
        5: compiler, {4}, ir, (device-hip, gfx900)
       6: linker, {5}, image, (device-hip, gfx900)
      7: offload, "device-hip (amdgcn-amd-amdhsa:gfx900)" {6}, image
          8: input, "/home/michliao/dummy.cpp", hip, (device-hip, gfx906)
         9: preprocessor, {8}, hip-cpp-output, (device-hip, gfx906)
        10: compiler, {9}, ir, (device-hip, gfx906)
       11: linker, {10}, image, (device-hip, gfx906)
      12: offload, "device-hip (amdgcn-amd-amdhsa:gfx906)" {11}, image
     13: linker, {7, 12}, hip-fatbin, (device-hip)
    14: offload, "host-hip (x86_64-unknown-linux-gnu)" {2}, "device-hip (amdgcn-amd-amdhsa)" {13}, ir
   15: backend, {14}, assembler, (host-hip)
  16: assembler, {15}, object, (host-hip)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69124/new/

https://reviews.llvm.org/D69124





More information about the cfe-commits mailing list