xref: /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.h (revision 1719886f6d08408b834d270c59ffcfd821c8f63a)
1 //===-- AArch64SelectionDAGInfo.h - AArch64 SelectionDAG Info ---*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file defines the AArch64 subclass for SelectionDAGTargetInfo.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64SELECTIONDAGINFO_H
14 #define LLVM_LIB_TARGET_AARCH64_AARCH64SELECTIONDAGINFO_H
15 
16 #include "llvm/CodeGen/SelectionDAGTargetInfo.h"
17 
18 namespace llvm {
19 
20 class AArch64SelectionDAGInfo : public SelectionDAGTargetInfo {
21 public:
22   SDValue EmitMOPS(AArch64ISD::NodeType SDOpcode, SelectionDAG &DAG,
23                    const SDLoc &DL, SDValue Chain, SDValue Dst,
24                    SDValue SrcOrValue, SDValue Size, Align Alignment,
25                    bool isVolatile, MachinePointerInfo DstPtrInfo,
26                    MachinePointerInfo SrcPtrInfo) const;
27 
28   SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl,
29                                   SDValue Chain, SDValue Dst, SDValue Src,
30                                   SDValue Size, Align Alignment,
31                                   bool isVolatile, bool AlwaysInline,
32                                   MachinePointerInfo DstPtrInfo,
33                                   MachinePointerInfo SrcPtrInfo) const override;
34   SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, const SDLoc &dl,
35                                   SDValue Chain, SDValue Dst, SDValue Src,
36                                   SDValue Size, Align Alignment,
37                                   bool isVolatile, bool AlwaysInline,
38                                   MachinePointerInfo DstPtrInfo) const override;
39   SDValue
40   EmitTargetCodeForMemmove(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain,
41                            SDValue Dst, SDValue Src, SDValue Size,
42                            Align Alignment, bool isVolatile,
43                            MachinePointerInfo DstPtrInfo,
44                            MachinePointerInfo SrcPtrInfo) const override;
45 
46   SDValue EmitTargetCodeForSetTag(SelectionDAG &DAG, const SDLoc &dl,
47                                   SDValue Chain, SDValue Op1, SDValue Op2,
48                                   MachinePointerInfo DstPtrInfo,
49                                   bool ZeroData) const override;
50 };
51 }
52 
53 #endif
54