Lines Matching defs:op

17 inline bool OperatorProperties::HasValueInput(const Operator* op) {
18 return OperatorProperties::GetValueInputCount(op) > 0;
21 inline bool OperatorProperties::HasContextInput(const Operator* op) {
22 IrOpcode::Value opcode = static_cast<IrOpcode::Value>(op->opcode());
26 inline bool OperatorProperties::HasEffectInput(const Operator* op) {
27 return OperatorProperties::GetEffectInputCount(op) > 0;
30 inline bool OperatorProperties::HasControlInput(const Operator* op) {
31 return OperatorProperties::GetControlInputCount(op) > 0;
34 inline bool OperatorProperties::HasFrameStateInput(const Operator* op) {
39 switch (op->opcode()) {
43 Runtime::FunctionId function = OpParameter<Runtime::FunctionId>(op);
87 inline int OperatorProperties::GetValueInputCount(const Operator* op) {
88 return op->InputCount();
91 inline int OperatorProperties::GetContextInputCount(const Operator* op) {
92 return OperatorProperties::HasContextInput(op) ? 1 : 0;
95 inline int OperatorProperties::GetFrameStateInputCount(const Operator* op) {
96 return OperatorProperties::HasFrameStateInput(op) ? 1 : 0;
99 inline int OperatorProperties::GetEffectInputCount(const Operator* op) {
100 if (op->opcode() == IrOpcode::kEffectPhi ||
101 op->opcode() == IrOpcode::kFinish) {
102 return OpParameter<int>(op);
104 if (op->HasProperty(Operator::kNoRead) && op->HasProperty(Operator::kNoWrite))
109 inline int OperatorProperties::GetControlInputCount(const Operator* op) {
110 switch (op->opcode()) {
119 return OpParameter<int>(op);
126 return op->HasProperty(Operator::kNoWrite) ? 0 : 1;
131 inline int OperatorProperties::GetTotalInputCount(const Operator* op) {
132 return GetValueInputCount(op) + GetContextInputCount(op) +
133 GetFrameStateInputCount(op) + GetEffectInputCount(op) +
134 GetControlInputCount(op);
140 inline bool OperatorProperties::HasValueOutput(const Operator* op) {
141 return GetValueOutputCount(op) > 0;
144 inline bool OperatorProperties::HasEffectOutput(const Operator* op) {
145 return op->opcode() == IrOpcode::kStart ||
146 op->opcode() == IrOpcode::kControlEffect ||
147 op->opcode() == IrOpcode::kValueEffect ||
148 (op->opcode() != IrOpcode::kFinish && GetEffectInputCount(op) > 0);
151 inline bool OperatorProperties::HasControlOutput(const Operator* op) {
152 IrOpcode::Value opcode = static_cast<IrOpcode::Value>(op->opcode());
157 inline int OperatorProperties::GetValueOutputCount(const Operator* op) {
158 return op->OutputCount();
161 inline int OperatorProperties::GetEffectOutputCount(const Operator* op) {
162 return HasEffectOutput(op) ? 1 : 0;
171 inline bool OperatorProperties::IsBasicBlockBegin(const Operator* op) {
172 uint8_t opcode = op->opcode();