[Mlir-commits] [mlir] [OpenMP][mlir] Added `num_teams`, `thread_limit` translation to LLVM IR (PR #68821)
Kiran Chandramohan
llvmlistbot at llvm.org
Thu Oct 12 04:35:49 PDT 2023
================
@@ -680,9 +678,21 @@ convertOmpTeams(omp::TeamsOp op, llvm::IRBuilderBase &builder,
moduleTranslation, bodyGenStatus);
};
+ llvm::Value *numTeamsLower = nullptr;
+ if (auto numTeamsLowerVar = op.getNumTeamsLower())
+ numTeamsLower = moduleTranslation.lookupValue(numTeamsLowerVar);
+
+ llvm::Value *numTeamsUpper = nullptr;
+ if (auto numTeamsUpperVar = op.getNumTeamsUpper())
+ numTeamsUpper = moduleTranslation.lookupValue(numTeamsUpperVar);
+
+ llvm::Value *threadLimit = nullptr;
+ if (auto threadLimitVar = op.getThreadLimit())
+ threadLimit = moduleTranslation.lookupValue(threadLimitVar);
----------------
kiranchandramohan wrote:
Nit: Spell the auto?
https://github.com/llvm/llvm-project/pull/68821
More information about the Mlir-commits
mailing list