Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

bogner (Justin Bogner)
User

Projects

User does not belong to any projects.

User Details

User Since
Mar 12 2014, 3:00 PM (498 w, 4 d)

Recent Activity

Thu, Sep 14

bogner committed rG11f0a6326757: [github] Simplify DirectX backend labeling (#66407) (authored by bogner).
[github] Simplify DirectX backend labeling (#66407)
Thu, Sep 14, 11:06 AM · Restricted Project

Wed, Sep 13

bogner committed rGe504194d51e1: [Driver][HLSL] Improve diagnostics for invalid shader model and stage (authored by bogner).
[Driver][HLSL] Improve diagnostics for invalid shader model and stage
Wed, Sep 13, 11:14 AM · Restricted Project, Restricted Project, Restricted Project
bogner closed D159103: [Driver][HLSL] Improve diagnostics for invalid shader model and stage.
Wed, Sep 13, 11:14 AM · Restricted Project, Restricted Project, Restricted Project

Tue, Sep 12

bogner committed rGfa2edb6323ee: [test][dxil-dis] Update metadata to match target triple (authored by bogner).
[test][dxil-dis] Update metadata to match target triple
Tue, Sep 12, 1:30 PM · Restricted Project, Restricted Project
bogner updated the diff for D159103: [Driver][HLSL] Improve diagnostics for invalid shader model and stage.
  • Check isSPIRVLogical rather than isSPIRV
  • Improve diagnostics given that HLSL can generate both DXIL and SPIR-V
  • Add tests for SPIR-V triples
  • Fix missing REQUIRES: in dxil triple tests
Tue, Sep 12, 10:12 AM · Restricted Project, Restricted Project, Restricted Project

Mon, Sep 11

bogner updated subscribers of D159103: [Driver][HLSL] Improve diagnostics for invalid shader model and stage.
Mon, Sep 11, 6:25 PM · Restricted Project, Restricted Project, Restricted Project
bogner updated the diff for D159103: [Driver][HLSL] Improve diagnostics for invalid shader model and stage.

Rebased to fix conflicts

Mon, Sep 11, 6:24 PM · Restricted Project, Restricted Project, Restricted Project

Thu, Sep 7

bogner added a comment to D159103: [Driver][HLSL] Improve diagnostics for invalid shader model and stage.

Ping. Please take another look when you get a chance, thanks!

Thu, Sep 7, 9:50 AM · Restricted Project, Restricted Project, Restricted Project

Tue, Sep 5

bogner accepted D159247: [HLSL] Cleanup support for `this` as an l-value.
Tue, Sep 5, 2:44 PM · Restricted Project, Restricted Project

Sep 1 2023

bogner updated the diff for D159103: [Driver][HLSL] Improve diagnostics for invalid shader model and stage.
  • Consolidate error messages
  • Error messages should start with a lower case letter
Sep 1 2023, 11:59 AM · Restricted Project, Restricted Project, Restricted Project
bogner accepted D150605: LLT: Add some stub constructors for FP types.

LGTM. Have you thought about @aemerson's suggestion about a migration plan?

Sep 1 2023, 11:17 AM · Restricted Project, Restricted Project

Aug 29 2023

bogner added inline comments to D159103: [Driver][HLSL] Improve diagnostics for invalid shader model and stage.
Aug 29 2023, 4:17 PM · Restricted Project, Restricted Project, Restricted Project
bogner committed rGef2b1700f464: [Sema][HLSL] Consolidate handling of HLSL attributes (authored by bogner).
[Sema][HLSL] Consolidate handling of HLSL attributes
Aug 29 2023, 9:00 AM · Restricted Project, Restricted Project
bogner closed D158803: [Sema][HLSL] Consolidate handling of HLSL attributes.
Aug 29 2023, 9:00 AM · Restricted Project, Restricted Project
bogner added inline comments to D158803: [Sema][HLSL] Consolidate handling of HLSL attributes.
Aug 29 2023, 8:12 AM · Restricted Project, Restricted Project
bogner requested review of D159103: [Driver][HLSL] Improve diagnostics for invalid shader model and stage.
Aug 29 2023, 8:11 AM · Restricted Project, Restricted Project, Restricted Project

Aug 28 2023

bogner updated the diff for D158803: [Sema][HLSL] Consolidate handling of HLSL attributes.
  • Now with more const
  • Added DiagnoseHLSLAttrStageMismatch and avoided using raw strings in diagnostics
Aug 28 2023, 1:59 PM · Restricted Project, Restricted Project
bogner added inline comments to D158803: [Sema][HLSL] Consolidate handling of HLSL attributes.
Aug 28 2023, 9:48 AM · Restricted Project, Restricted Project
bogner updated the diff for D158803: [Sema][HLSL] Consolidate handling of HLSL attributes.

Rebase

Aug 28 2023, 9:16 AM · Restricted Project, Restricted Project

Aug 25 2023

bogner committed rG43a9b92d79ab: [Sema][HLSL] Fix naming of anyhit/closesthit shaders (authored by bogner).
[Sema][HLSL] Fix naming of anyhit/closesthit shaders
Aug 25 2023, 1:17 PM · Restricted Project, Restricted Project
bogner closed D158820: [Sema][HLSL] Fix naming of anyhit/closesthit shaders.
Aug 25 2023, 1:17 PM · Restricted Project, Restricted Project
bogner updated the diff for D158820: [Sema][HLSL] Fix naming of anyhit/closesthit shaders.

Address feedback and simplify valid shader stage test

Aug 25 2023, 1:09 PM · Restricted Project, Restricted Project
bogner added inline comments to D158820: [Sema][HLSL] Fix naming of anyhit/closesthit shaders.
Aug 25 2023, 12:20 PM · Restricted Project, Restricted Project
bogner added inline comments to D158820: [Sema][HLSL] Fix naming of anyhit/closesthit shaders.
Aug 25 2023, 11:05 AM · Restricted Project, Restricted Project
bogner committed rGd43f324f6de4: [Sema][HLSL] Remove some duplicated code. NFC (authored by bogner).
[Sema][HLSL] Remove some duplicated code. NFC
Aug 25 2023, 1:13 AM · Restricted Project, Restricted Project
bogner committed rGea32f9948023: [Sema][HLSL] Clarify wording. NFC (authored by bogner).
[Sema][HLSL] Clarify wording. NFC
Aug 25 2023, 1:05 AM · Restricted Project, Restricted Project
bogner updated the diff for D158803: [Sema][HLSL] Consolidate handling of HLSL attributes.

Broke out a couple of semi-unrelated changes

Aug 25 2023, 12:36 AM · Restricted Project, Restricted Project
bogner requested review of D158820: [Sema][HLSL] Fix naming of anyhit/closesthit shaders.
Aug 25 2023, 12:35 AM · Restricted Project, Restricted Project
bogner accepted D158566: Add CLANGD_INCLUDE_TESTS as a separate flag to control clangd tests.

I'm not entirely convinced by the motivation (wouldn't it be better to just fix the tests?), but this seems like a perfectly reasonable flag to have.

Aug 25 2023, 12:11 AM · Restricted Project, Restricted Project, Restricted Project

Aug 24 2023

bogner requested review of D158803: [Sema][HLSL] Consolidate handling of HLSL attributes.
Aug 24 2023, 6:25 PM · Restricted Project, Restricted Project

Aug 21 2023

bogner committed rGd7f3b238fdc3: [DXILBitcodeWriter] Fix handling of an unspecified lower bound in DISubrange (authored by bogner).
[DXILBitcodeWriter] Fix handling of an unspecified lower bound in DISubrange
Aug 21 2023, 2:31 PM · Restricted Project, Restricted Project
bogner closed D158441: [DXILBitcodeWriter] Fix handling of an unspecified lower bound in DISubrange.
Aug 21 2023, 2:31 PM · Restricted Project, Restricted Project
bogner committed rG48e0a6f902ee: [DXILBitcodeWriter] Don't create a new abbrev per MDString (authored by bogner).
[DXILBitcodeWriter] Don't create a new abbrev per MDString
Aug 21 2023, 2:00 PM · Restricted Project, Restricted Project
bogner closed D158440: [DXILBitcodeWriter] Don't create a new abbrev per MDString.
Aug 21 2023, 1:59 PM · Restricted Project, Restricted Project
bogner requested review of D158441: [DXILBitcodeWriter] Fix handling of an unspecified lower bound in DISubrange.
Aug 21 2023, 10:31 AM · Restricted Project, Restricted Project
bogner requested review of D158440: [DXILBitcodeWriter] Don't create a new abbrev per MDString.
Aug 21 2023, 10:30 AM · Restricted Project, Restricted Project

Aug 19 2023

bogner committed rGd1889167b10a: [Driver][DXC] Accept -f{no-,}discard-value-names in the DXC driver (authored by bogner).
[Driver][DXC] Accept -f{no-,}discard-value-names in the DXC driver
Aug 19 2023, 1:49 AM · Restricted Project, Restricted Project

Aug 17 2023

bogner committed rGbe5c8dea1e1d: [Driver][DXC] Accept debug flags (/Zi and /Qembed_debug) (authored by bogner).
[Driver][DXC] Accept debug flags (/Zi and /Qembed_debug)
Aug 17 2023, 4:20 PM · Restricted Project, Restricted Project
bogner closed D158113: [Driver][DXC] Accept debug flags (/Zi and /Qembed_debug).
Aug 17 2023, 4:19 PM · Restricted Project, Restricted Project
bogner accepted D156424: [SPIRV] Add SPIR-V logical triple to llc.

This looks like a good start. I think a fair amount of it will need to change as the HLSL support matures, but most of that should be fine to handle in tree. Probably needs an approval from somebody who's worked more in the SPIR-V backend than I have as well though.

Aug 17 2023, 9:39 AM · Restricted Project, Restricted Project
bogner committed rG12babb08189c: [clang-tidy] Disable implicit search for a compilation db in some tests (authored by bogner).
[clang-tidy] Disable implicit search for a compilation db in some tests
Aug 17 2023, 8:47 AM · Restricted Project, Restricted Project
bogner closed D158157: [clang-tidy] Disable implicit search for a compilation db in some tests.
Aug 17 2023, 8:46 AM · Restricted Project, Restricted Project
bogner requested review of D158157: [clang-tidy] Disable implicit search for a compilation db in some tests.
Aug 17 2023, 1:31 AM · Restricted Project, Restricted Project

Aug 16 2023

bogner committed rG314a5d707fe7: Simplify a conditional in order to avoid a warning under MSVC (authored by bogner).
Simplify a conditional in order to avoid a warning under MSVC
Aug 16 2023, 4:21 PM · Restricted Project, Restricted Project
bogner requested review of D158113: [Driver][DXC] Accept debug flags (/Zi and /Qembed_debug).
Aug 16 2023, 1:29 PM · Restricted Project, Restricted Project
bogner committed rG72017fcf00b3: [DirectX] Only embed dxil when writing object files (authored by bogner).
[DirectX] Only embed dxil when writing object files
Aug 16 2023, 1:14 PM · Restricted Project, Restricted Project
bogner closed D158051: [DirectX] Only embed dxil when writing object files.
Aug 16 2023, 1:13 PM · Restricted Project, Restricted Project
bogner added inline comments to D157671: [DX] Add support for PSV signature elements.
Aug 16 2023, 11:20 AM · Restricted Project, Restricted Project

Aug 15 2023

bogner requested review of D158051: [DirectX] Only embed dxil when writing object files.
Aug 15 2023, 10:07 PM · Restricted Project, Restricted Project
bogner added a comment to D153185: [C API]: Add getters for inline assembly template string, constraints, and flags.

it was a bit unclear to me who would be best for reviewing C-API changes, looking at previous reviews in that area and CODE_OWNERS. I don't have any follow-up changes planned, but if there's a good person to mention on C-API changes that'd be good to know

Aug 15 2023, 9:54 PM · Restricted Project, Restricted Project
bogner committed rGa1c447d9ddcd: [C API]: Add getters for inline assembly template string, constraints, and flags (authored by bogner).
[C API]: Add getters for inline assembly template string, constraints, and flags
Aug 15 2023, 9:52 PM · Restricted Project, Restricted Project
bogner closed D153185: [C API]: Add getters for inline assembly template string, constraints, and flags.
Aug 15 2023, 9:52 PM · Restricted Project, Restricted Project
bogner committed rGe17667b33f1f: [Driver][DXC] Remove a bunch of options from DXC (authored by bogner).
[Driver][DXC] Remove a bunch of options from DXC
Aug 15 2023, 9:48 PM · Restricted Project, Restricted Project
bogner closed D158037: [Driver][DXC] Remove a bunch of options from DXC.
Aug 15 2023, 9:48 PM · Restricted Project, Restricted Project
bogner accepted D153185: [C API]: Add getters for inline assembly template string, constraints, and flags.

Apologies for bumping this: not sure who I should assign it to for review, since I couldn't find many recent C API diffs. Just want to make sure it doesn't get lost

Aug 15 2023, 4:58 PM · Restricted Project, Restricted Project
bogner resigned from D157110: llvm-cov: __cxx_global_var_init functions disrupt coverage.
Aug 15 2023, 4:47 PM · Restricted Project, Restricted Project
bogner committed rGcb6fe61be3de: [Driver][DXC] Handle -Fo and -Fc flags (authored by bogner).
[Driver][DXC] Handle -Fo and -Fc flags
Aug 15 2023, 4:39 PM · Restricted Project, Restricted Project, Restricted Project
bogner closed D157582: [Driver][DXC] Handle -Fo and -Fc flags.
Aug 15 2023, 4:39 PM · Restricted Project, Restricted Project, Restricted Project
bogner requested review of D158037: [Driver][DXC] Remove a bunch of options from DXC.
Aug 15 2023, 4:33 PM · Restricted Project, Restricted Project
bogner committed rG95ab1cd712c2: [Driver][DXC] Use the existing help and macro definition options. NFC (authored by bogner).
[Driver][DXC] Use the existing help and macro definition options. NFC
Aug 15 2023, 4:21 PM · Restricted Project, Restricted Project
bogner committed rG95ae517bb4c3: [Driver] Remove CLDXCFlag by allowing CLFlag to specify visibility. NFC (authored by bogner).
[Driver] Remove CLDXCFlag by allowing CLFlag to specify visibility. NFC
Aug 15 2023, 3:01 PM · Restricted Project, Restricted Project
bogner committed rG9478f661c26f: [Driver] Refactor to use llvm Option's new Visibility flags (authored by bogner).
[Driver] Refactor to use llvm Option's new Visibility flags
Aug 15 2023, 2:27 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner closed D157151: [Driver] Refactor to use llvm Option's new Visibility flags.
Aug 15 2023, 2:27 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner committed rG0db9dfb19329: [Driver] Update BoolOption to handle Visibility. NFC (authored by bogner).
[Driver] Update BoolOption to handle Visibility. NFC
Aug 15 2023, 1:14 PM · Restricted Project, Restricted Project
bogner closed D157150: [Driver] Update BoolOption to handle Visibility. NFC.
Aug 15 2023, 1:14 PM · Restricted Project, Restricted Project
bogner accepted D157671: [DX] Add support for PSV signature elements.
Aug 15 2023, 12:38 PM · Restricted Project, Restricted Project
bogner updated the diff for D157151: [Driver] Refactor to use llvm Option's new Visibility flags.

Update release note to point at the reviews for conflict resolution instructions.

Aug 15 2023, 11:59 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner updated the summary of D157151: [Driver] Refactor to use llvm Option's new Visibility flags.
Aug 15 2023, 11:56 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner updated the diff for D157151: [Driver] Refactor to use llvm Option's new Visibility flags.

Rebase for Vis -> Visibility change in https://reviews.llvm.org/D157149, and a few fixes for the Default -> ClangOption change I missed on my last update.

Aug 15 2023, 2:36 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner updated the diff for D157150: [Driver] Update BoolOption to handle Visibility. NFC.

Rebase on top of "Visibility" naming.

Aug 15 2023, 2:33 AM · Restricted Project, Restricted Project
bogner added a comment to D157151: [Driver] Refactor to use llvm Option's new Visibility flags.

This might cause some disruption to downstream consumers of this API and Options.td. Hopefully, "update_options_td_flags.py" that you've included should minimise that. I suggest "advertising" it in the summary a bit more.

LGTM, great work, thank you!

When landing this, could you send a PSA to Discourse to make folks aware of what's coming? I am primarily concerned about our downstream users.

Aug 15 2023, 2:31 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner committed rGdcb6d212fdfb: Reapply "[Option] Add "Visibility" field and clone the OptTable APIs to use it" (authored by bogner).
Reapply "[Option] Add "Visibility" field and clone the OptTable APIs to use it"
Aug 15 2023, 1:18 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner added a reverting change for rG4e3b89483a69: Revert "[Option] Add "Visibility" field and clone the OptTable APIs to use it": rGdcb6d212fdfb: Reapply "[Option] Add "Visibility" field and clone the OptTable APIs to use it".
Aug 15 2023, 1:18 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Aug 14 2023

bogner added inline comments to D157149: [Option] Add "Visibility" field and clone the OptTable APIs to use it.
Aug 14 2023, 5:06 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner updated the diff for D157151: [Driver] Refactor to use llvm Option's new Visibility flags.

Rebased and finished the changes to use ClangOption everywhere instead of DefaultVis. I think this is good to go now, please take a look.

Aug 14 2023, 4:29 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner updated the diff for D157150: [Driver] Update BoolOption to handle Visibility. NFC.

Rebase on top of "DefaultVis" naming

Aug 14 2023, 4:27 PM · Restricted Project, Restricted Project
bogner added a comment to D157110: llvm-cov: __cxx_global_var_init functions disrupt coverage.

If the right answer is to skip functions that don't have line info we should probably do that in Context::print where we loop over file.functions or maybe just at the beginning of collectFunction - doing this on a per block basis inside of the function doesn't really make sense.

Aug 14 2023, 4:02 PM · Restricted Project, Restricted Project
bogner added a reverting change for rGa16104e6da6f: [Option] Add "Visibility" field and clone the OptTable APIs to use it: rG4e3b89483a69: Revert "[Option] Add "Visibility" field and clone the OptTable APIs to use it".
Aug 14 2023, 1:32 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner committed rG4e3b89483a69: Revert "[Option] Add "Visibility" field and clone the OptTable APIs to use it" (authored by bogner).
Revert "[Option] Add "Visibility" field and clone the OptTable APIs to use it"
Aug 14 2023, 1:32 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner added a reverting change for D157149: [Option] Add "Visibility" field and clone the OptTable APIs to use it: rG4e3b89483a69: Revert "[Option] Add "Visibility" field and clone the OptTable APIs to use it".
Aug 14 2023, 1:31 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner committed rGa16104e6da6f: [Option] Add "Visibility" field and clone the OptTable APIs to use it (authored by bogner).
[Option] Add "Visibility" field and clone the OptTable APIs to use it
Aug 14 2023, 1:28 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner closed D157149: [Option] Add "Visibility" field and clone the OptTable APIs to use it.
Aug 14 2023, 1:27 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner accepted D157837: [flang][driver] Update the visibility of Clang options in Flang.
Aug 14 2023, 12:44 PM · Restricted Project, Restricted Project, Restricted Project
bogner updated the diff for D157149: [Option] Add "Visibility" field and clone the OptTable APIs to use it.

Update comment wording to be less ambiguous about flags vs visibility

Aug 14 2023, 12:38 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner committed rGf58330cbe445: [Driver] Make /Zi and /Z7 aliases of -g rather than handling them specially (authored by bogner).
[Driver] Make /Zi and /Z7 aliases of -g rather than handling them specially
Aug 14 2023, 12:28 PM · Restricted Project, Restricted Project
bogner closed D157794: [Driver] Make /Zi and /Z7 aliases of -g rather than handling them specially.
Aug 14 2023, 12:28 PM · Restricted Project, Restricted Project
bogner added inline comments to D157794: [Driver] Make /Zi and /Z7 aliases of -g rather than handling them specially.
Aug 14 2023, 10:27 AM · Restricted Project, Restricted Project
bogner added a comment to D157837: [flang][driver] Update the visibility of Clang options in Flang.

I can't speak to which flags should be present in flang-new or not, but in principle this looks great. You'll need to update the patch to use the "ClangOption" spelling rather than "Default" of course, as discussed in https://reviews.llvm.org/D157151

Aug 14 2023, 3:39 AM · Restricted Project, Restricted Project, Restricted Project
bogner added a comment to D157151: [Driver] Refactor to use llvm Option's new Visibility flags.

This can be tweaked in getOptionVisibilityMask (extracted from this patch):

llvm::opt::Visibility
Driver::getOptionVisibilityMask(bool UseDriverMode) const {
  if (!UseDriverMode)
    return llvm::opt::Visibility(llvm::opt::Default);
  if (IsCLMode())
    return llvm::opt::Visibility(options::CLOption);
  if (IsDXCMode())
    return llvm::opt::Visibility(options::DXCOption);
  if (IsFlangMode()) {
    // vvvvvvvvvvvvvvv HERE vvvvvvvvvvvvvvvvvvv
    // TODO: Does flang really want *all* of the clang driver options?
    // We probably need to annotate more specifically.
    return llvm::opt::Visibility(llvm::opt::Default | options::FlangOption);
  }
  return llvm::opt::Visibility(llvm::opt::Default);
}

Now, prior to this change I couldn't find a way to disable unsupported Clang options in Flang. With this patch,

  • all Clang options gain a visibility flag (atm that's Default),
  • that flag can be used to disable options unsupported in Flang.

For this to work, all options supported by Flang need to have their visibility flags set accordingly. That's the goal, but I can see that we have missed quite a few options over the time (*). Updated here: https://reviews.llvm.org/D157837.

Aug 14 2023, 3:38 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner updated the diff for D157151: [Driver] Refactor to use llvm Option's new Visibility flags.

Update to use "ClangOption" instead of "Default" (See https://reviews.llvm.org/D157150 for the introduction of the name), and address documentation comments.

Aug 14 2023, 3:35 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner updated the summary of D157150: [Driver] Update BoolOption to handle Visibility. NFC.
Aug 14 2023, 3:10 AM · Restricted Project, Restricted Project
bogner updated the diff for D157150: [Driver] Update BoolOption to handle Visibility. NFC.

Use "ClangOption" rather than "Default" in Options.td, as per the conversation in https://reviews.llvm.org/D157151

Aug 14 2023, 3:05 AM · Restricted Project, Restricted Project
bogner committed rGce16c3cf30f5: [Clang][Docs] Consolidate option hiding in ClangOptionDocEmitter (authored by bogner).
[Clang][Docs] Consolidate option hiding in ClangOptionDocEmitter
Aug 14 2023, 12:00 AM · Restricted Project, Restricted Project
bogner closed D157146: [Clang][Docs] Consolidate option hiding in ClangOptionDocEmitter.
Aug 14 2023, 12:00 AM · Restricted Project, Restricted Project

Aug 13 2023

bogner accepted D157811: [DAGCombiner] Don't merge stores to an illegal integer type.
Aug 13 2023, 6:17 PM · Restricted Project, Restricted Project
bogner added inline comments to D157794: [Driver] Make /Zi and /Z7 aliases of -g rather than handling them specially.
Aug 13 2023, 3:05 AM · Restricted Project, Restricted Project

Aug 12 2023

bogner requested review of D157794: [Driver] Make /Zi and /Z7 aliases of -g rather than handling them specially.
Aug 12 2023, 11:54 AM · Restricted Project, Restricted Project
bogner added a comment to D157151: [Driver] Refactor to use llvm Option's new Visibility flags.

I think that it would be good to replace Default with e.g.

  • Clang, or
  • ClangDriver, or
  • ClangCompilerDriver.

Or, at least, to make the meaning of Default much clearer (through e.g. comments). In general, I feel that Default is skewed towards this notion that clang (the compiler driver tool) is the main client of clangDriver. That used to be the case, but with Flang's driver also implemented in terms of clangDriver , that's no longer the case. Also, the long term goal is to extract the driver library out of Clang. One day :)

Aug 12 2023, 11:46 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project

Aug 10 2023

bogner updated the diff for D157151: [Driver] Refactor to use llvm Option's new Visibility flags.

Update FlangDriver.md

Aug 10 2023, 3:40 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
bogner added a comment to D157151: [Driver] Refactor to use llvm Option's new Visibility flags.

Hey @bogner , I've only skimmed through so far and it's looking great! That Include/Exclude API was not fun to use. What you are proposing here takes Options.td to a much a better place - this is a much needed and long overdue refactor.

There's quite a bit of churn here, so I will need a few days to scan. In the meantime, could you update flang/docs/FlangDriver.md? And in general, please note that this updates (primarily) clangDriver logic, which is used by both by Clang and Flang. In particular, Options.td is shared. I think that it's worth highlighting that this change benefits both sub-projects.

Aug 10 2023, 3:38 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project