[llvm] [AArch64] Implement INIT/ADJUST_TRAMPOLINE (PR #70267)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 15:40:00 PDT 2023
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 9237ce46138c311849e7de19a9a3ea930f1dbd6d 9e7230fe8a4bbfacbd555720cc47478cf0b343f3 -- compiler-rt/lib/builtins/trampoline_setup.c llvm/lib/Target/AArch64/AArch64ISelLowering.cpp llvm/lib/Target/AArch64/AArch64ISelLowering.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 58063dd2c..523e28835 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -5947,16 +5947,17 @@ static SDValue LowerFLDEXP(SDValue Op, SelectionDAG &DAG) {
}
SDValue AArch64TargetLowering::LowerADJUST_TRAMPOLINE(SDValue Op,
- SelectionDAG &DAG) const {
+ SelectionDAG &DAG) const {
// Note: x18 cannot be used for the Nest parameter on Windows and macOS.
if (Subtarget->isTargetDarwin() || Subtarget->isTargetWindows())
- report_fatal_error("ADJUST_TRAMPOLINE operation is only supported on Linux.");
+ report_fatal_error(
+ "ADJUST_TRAMPOLINE operation is only supported on Linux.");
return Op.getOperand(0);
}
SDValue AArch64TargetLowering::LowerINIT_TRAMPOLINE(SDValue Op,
- SelectionDAG &DAG) const {
+ SelectionDAG &DAG) const {
// Note: x18 cannot be used for the Nest parameter on Windows and macOS.
if (Subtarget->isTargetDarwin() || Subtarget->isTargetWindows())
@@ -5975,12 +5976,15 @@ SDValue AArch64TargetLowering::LowerINIT_TRAMPOLINE(SDValue Op,
TargetLowering::ArgListEntry Entry;
Entry.Ty = IntPtrTy;
- Entry.Node = Trmp; Args.push_back(Entry);
+ Entry.Node = Trmp;
+ Args.push_back(Entry);
Entry.Node = DAG.getConstant(20, dl, MVT::i64);
Args.push_back(Entry);
- Entry.Node = FPtr; Args.push_back(Entry);
- Entry.Node = Nest; Args.push_back(Entry);
+ Entry.Node = FPtr;
+ Args.push_back(Entry);
+ Entry.Node = Nest;
+ Args.push_back(Entry);
// Lower to a call to __trampoline_setup(Trmp, TrampSize, FPtr, ctx_reg)
TargetLowering::CallLoweringInfo CLI(DAG);
``````````
</details>
https://github.com/llvm/llvm-project/pull/70267
More information about the llvm-commits
mailing list