[PATCH] D125585: [HLSL][clang][Driver] Parse target profile early to update Driver::TargetTriple.
Chris Bieneman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 17 15:54:31 PDT 2022
beanz added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/HLSL.h:32
Action::OffloadKind DeviceOffloadKind) const override;
- std::string ComputeEffectiveClangTriple(const llvm::opt::ArgList &Args,
- types::ID InputType) const override;
+ static std::string parseTargetProfile(StringRef TargetProfile);
};
----------------
I don't like using an empty string as a sentinel for an error. Since this is no longer overriding an existing method, we should change it. Probably the easiest change is to llvm::Optional. Then you can return `None` in the failure cases.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125585/new/
https://reviews.llvm.org/D125585
More information about the cfe-commits
mailing list