[flang-commits] [flang] [MLIR][Flang][OpenMP] Implement lowering simd aligned to MLIR (PR #95198)
via flang-commits
flang-commits at lists.llvm.org
Thu Jun 13 07:35:42 PDT 2024
================
@@ -999,6 +1000,69 @@ bool ClauseProcessor::processUseDevicePtr(
});
}
+static llvm::StringMap<bool> getTargetFeatures(mlir::ModuleOp module) {
+ llvm::StringMap<bool> featuresMap;
+ llvm::SmallVector<llvm::StringRef> targetFeaturesVec;
+ if (mlir::LLVM::TargetFeaturesAttr features =
+ fir::getTargetFeatures(module)) {
+ llvm::StringRef targetFeaturesStr(features.getFeaturesString());
----------------
harishch4 wrote:
Yeah, that seems cleaner. Updated code.
https://github.com/llvm/llvm-project/pull/95198
More information about the flang-commits
mailing list