xref: /freebsd/contrib/llvm-project/llvm/utils/TableGen/Basic/SDNodeProperties.h (revision 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
1*0fca6ea1SDimitry Andric //===- SDNodeProperties.h ---------------------------------------*- C++ -*-===//
2*0fca6ea1SDimitry Andric //
3*0fca6ea1SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*0fca6ea1SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*0fca6ea1SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*0fca6ea1SDimitry Andric //
7*0fca6ea1SDimitry Andric //===----------------------------------------------------------------------===//
8*0fca6ea1SDimitry Andric 
9*0fca6ea1SDimitry Andric #ifndef LLVM_UTILS_TABLEGEN_SDNODEPROPERTIES_H
10*0fca6ea1SDimitry Andric #define LLVM_UTILS_TABLEGEN_SDNODEPROPERTIES_H
11*0fca6ea1SDimitry Andric 
12*0fca6ea1SDimitry Andric namespace llvm {
13*0fca6ea1SDimitry Andric 
14*0fca6ea1SDimitry Andric class Record;
15*0fca6ea1SDimitry Andric 
16*0fca6ea1SDimitry Andric // SelectionDAG node properties.
17*0fca6ea1SDimitry Andric //  SDNPMemOperand: indicates that a node touches memory and therefore must
18*0fca6ea1SDimitry Andric //                  have an associated memory operand that describes the access.
19*0fca6ea1SDimitry Andric enum SDNP {
20*0fca6ea1SDimitry Andric   SDNPCommutative,
21*0fca6ea1SDimitry Andric   SDNPAssociative,
22*0fca6ea1SDimitry Andric   SDNPHasChain,
23*0fca6ea1SDimitry Andric   SDNPOutGlue,
24*0fca6ea1SDimitry Andric   SDNPInGlue,
25*0fca6ea1SDimitry Andric   SDNPOptInGlue,
26*0fca6ea1SDimitry Andric   SDNPMayLoad,
27*0fca6ea1SDimitry Andric   SDNPMayStore,
28*0fca6ea1SDimitry Andric   SDNPSideEffect,
29*0fca6ea1SDimitry Andric   SDNPMemOperand,
30*0fca6ea1SDimitry Andric   SDNPVariadic,
31*0fca6ea1SDimitry Andric   SDNPWantRoot,
32*0fca6ea1SDimitry Andric   SDNPWantParent
33*0fca6ea1SDimitry Andric };
34*0fca6ea1SDimitry Andric 
35*0fca6ea1SDimitry Andric unsigned parseSDPatternOperatorProperties(Record *R);
36*0fca6ea1SDimitry Andric 
37*0fca6ea1SDimitry Andric } // namespace llvm
38*0fca6ea1SDimitry Andric 
39*0fca6ea1SDimitry Andric #endif
40