[Mlir-commits] [llvm] [mlir] [Flang] [OpenMP] Add LLVM lowering support for PRIORITY in TASK (PR #120710)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Dec 25 21:03:48 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff cea738bc9a9e4835f9a076145953ed1369dcad7d 287a709170bdfd15e7de11c1dd11f71be5ca0921 --extensions h,cpp -- llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
index 494cfad04a..6a979c5c16 100644
--- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -1976,8 +1976,8 @@ OpenMPIRBuilder::InsertPointOrErrorTy OpenMPIRBuilder::createTask(
Constant *Zero = ConstantInt::get(Int32Ty, 0);
// kmp_task_t* => { ptr }
Type *TaskPtr = StructType::get(VoidPtr);
- Value *TaskGEP = Builder.CreateInBoundsGEP(
- TaskPtr, TaskData, {Zero, Zero});
+ Value *TaskGEP =
+ Builder.CreateInBoundsGEP(TaskPtr, TaskData, {Zero, Zero});
// kmp_task_t => { ptr, ptr, i32, ptr, ptr }
Type *TaskStructType = StructType::get(
VoidPtr, VoidPtr, Builder.getInt32Ty(), VoidPtr, VoidPtr);
@@ -1985,8 +1985,8 @@ OpenMPIRBuilder::InsertPointOrErrorTy OpenMPIRBuilder::createTask(
TaskStructType, TaskGEP, {Zero, ConstantInt::get(Int32Ty, 4)});
// kmp_cmplrdata_t => { ptr, ptr }
Type *CmplrStructType = StructType::get(VoidPtr, VoidPtr);
- Value *CmplrData = Builder.CreateInBoundsGEP(
- CmplrStructType, PriorityData, {Zero, Zero});
+ Value *CmplrData = Builder.CreateInBoundsGEP(CmplrStructType,
+ PriorityData, {Zero, Zero});
Builder.CreateStore(Priority, CmplrData);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/120710
More information about the Mlir-commits
mailing list