Use BranchProbability instead of floating points in IfConverter.
[llvm/stm8.git] / lib / Target / ARM / ARMSelectionDAGInfo.h
blobec1bf5ca1941d5e0a4547d7cb1a39852196d4a75
1 //===-- ARMSelectionDAGInfo.h - ARM SelectionDAG Info -----------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines the ARM subclass for TargetSelectionDAGInfo.
12 //===----------------------------------------------------------------------===//
14 #ifndef ARMSELECTIONDAGINFO_H
15 #define ARMSELECTIONDAGINFO_H
17 #include "llvm/Target/TargetSelectionDAGInfo.h"
19 namespace llvm {
21 class ARMSelectionDAGInfo : public TargetSelectionDAGInfo {
22 /// Subtarget - Keep a pointer to the ARMSubtarget around so that we can
23 /// make the right decision when generating code for different targets.
24 const ARMSubtarget *Subtarget;
26 public:
27 explicit ARMSelectionDAGInfo(const TargetMachine &TM);
28 ~ARMSelectionDAGInfo();
30 virtual
31 SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, DebugLoc dl,
32 SDValue Chain,
33 SDValue Dst, SDValue Src,
34 SDValue Size, unsigned Align,
35 bool isVolatile, bool AlwaysInline,
36 MachinePointerInfo DstPtrInfo,
37 MachinePointerInfo SrcPtrInfo) const;
39 // Adjust parameters for memset, see RTABI section 4.3.4
40 virtual
41 SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, DebugLoc dl,
42 SDValue Chain,
43 SDValue Op1, SDValue Op2,
44 SDValue Op3, unsigned Align,
45 bool isVolatile,
46 MachinePointerInfo DstPtrInfo) const;
51 #endif