/3rd_party/llvm/lib/Target/X86/X86SelectionDAGInfo.h

https://code.google.com/p/softart/ · C++ Header · 56 lines · 31 code · 11 blank · 14 comment · 0 complexity · 0d7279b6d2ec7a4d78270515be6759c3 MD5 · raw file

  1. //===-- X86SelectionDAGInfo.h - X86 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 X86 subclass for TargetSelectionDAGInfo.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef X86SELECTIONDAGINFO_H
  14. #define X86SELECTIONDAGINFO_H
  15. #include "llvm/Target/TargetSelectionDAGInfo.h"
  16. namespace llvm {
  17. class X86TargetLowering;
  18. class X86TargetMachine;
  19. class X86Subtarget;
  20. class X86SelectionDAGInfo : public TargetSelectionDAGInfo {
  21. /// Subtarget - Keep a pointer to the X86Subtarget around so that we can
  22. /// make the right decision when generating code for different targets.
  23. const X86Subtarget *Subtarget;
  24. const X86TargetLowering &TLI;
  25. public:
  26. explicit X86SelectionDAGInfo(const X86TargetMachine &TM);
  27. ~X86SelectionDAGInfo();
  28. virtual
  29. SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, SDLoc dl,
  30. SDValue Chain,
  31. SDValue Dst, SDValue Src,
  32. SDValue Size, unsigned Align,
  33. bool isVolatile,
  34. MachinePointerInfo DstPtrInfo) const;
  35. virtual
  36. SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, SDLoc dl,
  37. SDValue Chain,
  38. SDValue Dst, SDValue Src,
  39. SDValue Size, unsigned Align,
  40. bool isVolatile, bool AlwaysInline,
  41. MachinePointerInfo DstPtrInfo,
  42. MachinePointerInfo SrcPtrInfo) const;
  43. };
  44. }
  45. #endif