[flang-commits] [flang] [mlir] [OpenMP][MLIR] OMPEarlyOutliningPass removal (PR #67319)
Sergio Afonso via flang-commits
flang-commits at lists.llvm.org
Tue Nov 7 02:39:12 PST 2023
================
@@ -2459,6 +2459,8 @@ convertDeclareTargetAttr(Operation *op, mlir::omp::DeclareTargetAttr attribute,
if (declareType == omp::DeclareTargetDeviceType::host) {
llvm::Function *llvmFunc =
moduleTranslation.lookupFunction(funcOp.getName());
+ llvmFunc->replaceAllUsesWith(
+ llvm::UndefValue::get(llvmFunc->getType()));
----------------
skatrak wrote:
This looks like a good solution to the problem. Thanks!
https://github.com/llvm/llvm-project/pull/67319
More information about the flang-commits
mailing list