[llvm] [hexagon] Add support for llvm.debugtrap (PR #117049)

Brian Cain via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 13:10:58 PST 2024


androm3da wrote:

> ⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️
> 
> You can test this locally with the following command:
> ```shell
> git-clang-format --diff 3282be1f8d278836135cc1bda130abb031155701 9dbcb9632f55f32fd51153a97ca113d221377c83 --extensions cpp -- llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
> ```
> 
> View the diff from clang-format here.
> ```diff
> diff --git a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
> index 77d8494921..1f7f0bf0ac 100644
> --- a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
> +++ b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
> @@ -1507,7 +1507,7 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM,
>    setOperationAction(ISD::ConstantFP,           MVT::f32,   Legal);
>    setOperationAction(ISD::ConstantFP,           MVT::f64,   Legal);
>    setOperationAction(ISD::TRAP,                 MVT::Other, Legal);
> -  setOperationAction(ISD::DEBUGTRAP,            MVT::Other, Legal);
> +  setOperationAction(ISD::DEBUGTRAP, MVT::Other, Legal);
>    setOperationAction(ISD::ConstantPool,         MVT::i32,   Custom);
>    setOperationAction(ISD::JumpTable,            MVT::i32,   Custom);
>    setOperationAction(ISD::BUILD_PAIR,           MVT::i64,   Expand);
> ```

I overrode `clang-format` deliberately in order to match the surrounding code.

https://github.com/llvm/llvm-project/pull/117049


More information about the llvm-commits mailing list