AArch64SchedPredAmpere.td 1.1 KB

12345678910111213141516171819202122232425
  1. //===- AArch64SchedPredAmpere.td - AArch64 Sched Preds -----*- tablegen -*-===//
  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 scheduling predicate definitions that are used by the
  10. // AArch64 Ampere Computing processors.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. // Auxiliary predicates.
  14. // Check for a LSL shift <= 4
  15. def AmpereCheapLSL : MCSchedPredicate<
  16. CheckAny<[CheckShiftBy0,
  17. CheckAll<
  18. [CheckShiftLSL,
  19. CheckAny<
  20. [CheckShiftBy1,
  21. CheckShiftBy2,
  22. CheckShiftBy3,
  23. CheckShiftBy4]>]>]>>;