================
@@ -27,7 +27,12 @@ constexpr unsigned SPIRVAddrSpaceMap[] = {
 };
 
 class SPIRVTargetLoweringInfo : public TargetLoweringInfo {
+  // SPIR keeps the default system scope, like CommonSPIRTargetCodeGenInfo.
+  bool isSPIRV;
----------------
steffenlarsen wrote:

Reads a little weird that something called `SPIRVTargetLoweringInfo` is not 
SPIR-V. Would it make sense to invert the bool, i.e. make it `isSPIR`, or 
rename the `SPIRVTargetLoweringInfo` to `SPIRTargetLoweringInfo`?

Alternatively, should we consider splitting `SPIRVTargetLoweringInfo` into two, 
so `SPIR` gets it own and we either make `SPIRVTargetLoweringInfo` inherit from 
it or make a common base class and diverge the behavior only when required 
through overriding?

https://github.com/llvm/llvm-project/pull/231754
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to