[Openmp-commits] [flang] [openmp] [flang][NVPTX] Add initial support to the NVPTX target (PR #71992)

Fabian Mora via Openmp-commits openmp-commits at lists.llvm.org
Thu Nov 16 05:07:04 PST 2023

@@ -175,6 +175,45 @@ getExplicitAndImplicitAMDGPUTargetFeatures(CompilerInstance &ci,
   return llvm::join(featuresVec, ",");
+// Get feature string which represents combined explicit target features
+// for NVPTX and the target features specified by the user/
+// TODO: Have a more robust target conf like `clang/lib/Basic/Targets/NVPTX.cpp`
fabianmcg wrote:

Sure, it should be doable, `AMDGPU` also needs a similar refactor, however, I'm thinking (and waiting) in adding them to `llvm/offload` as MLIR would also benefit from these refactors.


More information about the Openmp-commits mailing list