SDNodeProperties.h 985 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //===- SDNodeProperties.h ---------------------------------------*- 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. #ifndef LLVM_UTILS_TABLEGEN_SDNODEPROPERTIES_H
  9. #define LLVM_UTILS_TABLEGEN_SDNODEPROPERTIES_H
  10. namespace llvm {
  11. class Record;
  12. // SelectionDAG node properties.
  13. // SDNPMemOperand: indicates that a node touches memory and therefore must
  14. // have an associated memory operand that describes the access.
  15. enum SDNP {
  16. SDNPCommutative,
  17. SDNPAssociative,
  18. SDNPHasChain,
  19. SDNPOutGlue,
  20. SDNPInGlue,
  21. SDNPOptInGlue,
  22. SDNPMayLoad,
  23. SDNPMayStore,
  24. SDNPSideEffect,
  25. SDNPMemOperand,
  26. SDNPVariadic,
  27. SDNPWantRoot,
  28. SDNPWantParent
  29. };
  30. unsigned parseSDPatternOperatorProperties(Record *R);
  31. }
  32. #endif