Check if generated code can be marked as the code which does not throw an exception.
If LLVM IR does not throw an exception, add nounwind function attribute.
This patch depends on https://reviews.llvm.org/D147313
Paths
| Differential D147321
[RFC][Flang][OMPIRBuilder] Add nounwind attribute to the LLVM IR Needs ReviewPublic Authored by domada on Mar 31 2023, 6:06 AM.
Details Summary Check if generated code can be marked as the code which does not throw an exception. If LLVM IR does not throw an exception, add nounwind function attribute. This patch depends on https://reviews.llvm.org/D147313
Diff Detail
Unit TestsFailed Event TimelineHerald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald Transcript domada added a parent revision: D147313: [WIP][MLIR][OMPIRBuilder] Lower OpenMP MLIR target attributes to LLVM IR.Mar 31 2023, 6:08 AM domada retitled this revision from [Flang][OMPIRBuilder] Add nounwind attribute to the LLVM IR to [WIP][Flang][OMPIRBuilder] Add nounwind attribute to the LLVM IR.Apr 24 2023, 7:51 AM domada retitled this revision from [WIP][Flang][OMPIRBuilder] Add nounwind attribute to the LLVM IR to [RFC][Flang][OMPIRBuilder] Add nounwind attribute to the LLVM IR.Apr 28 2023, 7:47 AM
Revision Contents
Diff 515259 clang/lib/CodeGen/CodeGenFunction.cpp
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/include/llvm/IR/IRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/lib/IR/IRBuilder.cpp
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
mlir/test/Target/LLVMIR/openmp-llvm.mlir
|
Style F