AArch64ExpandImm.h 959 B

1234567891011121314151617181920212223242526272829303132333435
  1. //===- AArch64ExpandImm.h - AArch64 Immediate Expansion ---------*- 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 contains the AArch64 immediate expansion stuff.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64EXPANDIMM_H
  13. #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64EXPANDIMM_H
  14. #include "llvm/ADT/SmallVector.h"
  15. namespace llvm {
  16. namespace AArch64_IMM {
  17. struct ImmInsnModel {
  18. unsigned Opcode;
  19. uint64_t Op1;
  20. uint64_t Op2;
  21. };
  22. void expandMOVImm(uint64_t Imm, unsigned BitSize,
  23. SmallVectorImpl<ImmInsnModel> &Insn);
  24. } // end namespace AArch64_IMM
  25. } // end namespace llvm
  26. #endif