[PATCH] D28047: Remove the '-disable-llvm-passes' flag (which I didn't even know existed, and I suspect many others aren't aware of either) and strength '-disable-llvm-optzns' to do the same thing.

Chandler Carruth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 22 01:09:09 PST 2016


chandlerc created this revision.
chandlerc added reviewers: rsmith, mehdi_amini.
chandlerc added a subscriber: cfe-commits.
Herald added a subscriber: mcrosier.

Much to my surprise, '-disable-llvm-optzns' which I thought was the
magical flag I wanted to get at the raw LLVM IR coming out of Clang
deosn't do that. It still runs some passes over the IR. I don't want
that, I really want the *raw* IR coming out of Clang and I strongly
suspect everyone else using it is in the same camp.

I've not talked to anyone debugging Clang and LLVM interactions that
needed these different flags so I'd like to remove the less widely known
one (I think) and consolidate on a simple, strong model for the one flag
left.

This is part of simplifying how Clang drives LLVM to make it cleaner to
wire up to the new pass manager.


https://reviews.llvm.org/D28047

Files:
  include/clang/Driver/CC1Options.td
  include/clang/Frontend/CodeGenOptions.def
  lib/CodeGen/BackendUtil.cpp
  lib/Driver/Tools.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGen/debug-info-scope.c
  test/CodeGen/sanitize-address-field-padding.cpp
  test/CodeGenCUDA/convergent.cu
  test/CodeGenCUDA/fp-contract.cu
  test/CodeGenCUDA/link-device-bitcode.cu
  test/CodeGenCUDA/nothrow.cu
  test/CodeGenCXX/alias-available-externally.cpp
  test/CodeGenCoroutines/coro-alloc.cpp
  test/CodeGenCoroutines/coro-builtins.c
  test/CodeGenCoroutines/microsoft-abi-operator-coawait.cpp
  test/CodeGenObjC/arc-linetable.m
  test/Driver/save-temps.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28047.82313.patch
Type: text/x-patch
Size: 15983 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161222/96f8dfdf/attachment-0001.bin>


More information about the cfe-commits mailing list