[Mlir-commits] [mlir] [mlir][gpu] Add innermost-first policy when mapping loops to GPU IDs (PR #160634)
Fabian Mora
llvmlistbot at llvm.org
Thu Sep 25 04:28:13 PDT 2025
================
@@ -65,16 +66,29 @@ static MappingLevel &operator++(MappingLevel &mappingLevel) {
return mappingLevel;
}
+// Map the policy string to a typed mapping policy.
+static FailureOr<MappingPolicy> getMappingPolicyFromStr(StringRef policy) {
+ std::string policyCanonical = policy.trim().lower();
+
+ auto option =
+ llvm::StringSwitch<std::optional<MappingPolicy>>(policyCanonical)
----------------
fabianmcg wrote:
Don't use auto.
https://github.com/llvm/llvm-project/pull/160634
More information about the Mlir-commits
mailing list