LoongArchMCTargetDesc.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //===- LoongArchMCTargetDesc.h - LoongArch Target Descriptions --*- 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 provides LoongArch specific target descriptions.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHMCTARGETDESC_H
  13. #define LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHMCTARGETDESC_H
  14. #include "llvm/MC/MCTargetOptions.h"
  15. #include "llvm/Support/DataTypes.h"
  16. #include <memory>
  17. namespace llvm {
  18. class MCAsmBackend;
  19. class MCCodeEmitter;
  20. class MCContext;
  21. class MCInstrInfo;
  22. class MCObjectTargetWriter;
  23. class MCRegisterInfo;
  24. class MCSubtargetInfo;
  25. class Target;
  26. MCCodeEmitter *createLoongArchMCCodeEmitter(const MCInstrInfo &MCII,
  27. MCContext &Ctx);
  28. MCAsmBackend *createLoongArchAsmBackend(const Target &T,
  29. const MCSubtargetInfo &STI,
  30. const MCRegisterInfo &MRI,
  31. const MCTargetOptions &Options);
  32. std::unique_ptr<MCObjectTargetWriter>
  33. createLoongArchELFObjectWriter(uint8_t OSABI, bool Is64Bit);
  34. } // end namespace llvm
  35. // Defines symbolic names for LoongArch registers.
  36. #define GET_REGINFO_ENUM
  37. #include "LoongArchGenRegisterInfo.inc"
  38. // Defines symbolic names for LoongArch instructions.
  39. #define GET_INSTRINFO_ENUM
  40. #define GET_INSTRINFO_MC_HELPER_DECLS
  41. #include "LoongArchGenInstrInfo.inc"
  42. #define GET_SUBTARGETINFO_ENUM
  43. #include "LoongArchGenSubtargetInfo.inc"
  44. #endif // LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHMCTARGETDESC_H