Lines Matching defs:InstructionsState

814 class InstructionsState {
821 assert(valid() && "InstructionsState is invalid.");
826 assert(valid() && "InstructionsState is invalid.");
848 InstructionsState() = delete;
849 InstructionsState(Instruction *MainOp, Instruction *AltOp)
851 static InstructionsState invalid() { return {nullptr, nullptr}; }
868 static InstructionsState getSameOpcode(ArrayRef<Value *> VL,
907 /// InstructionsState, the Opcode that we suppose the whole list
909 static InstructionsState getSameOpcode(ArrayRef<Value *> VL,
913 return InstructionsState::invalid();
917 return InstructionsState::invalid();
923 return InstructionsState::invalid();
963 return InstructionsState::invalid();
977 return InstructionsState::invalid();
1049 return InstructionsState::invalid();
1052 return InstructionsState::invalid();
1056 return InstructionsState::invalid();
1060 return InstructionsState::invalid();
1067 return InstructionsState::invalid();
1070 return InstructionsState::invalid();
1080 return InstructionsState::invalid();
1085 return InstructionsState::invalid();
1088 return InstructionsState(MainOp, AltOp);
1872 InstructionsState S = getSameOpcode(Ops, TLI);
2437 void appendOperandsOfVL(ArrayRef<Value *> VL, const InstructionsState &S) {
2441 assert(S.valid() && "InstructionsState is invalid.");
2591 VLOperands(ArrayRef<Value *> RootVL, const InstructionsState &S,
2739 InstructionsState OpS =
3355 InstructionsState S = InstructionsState::invalid();
3429 void setOperations(const InstructionsState &S) {
3430 assert(S && "InstructionsState is invalid.");
3595 const InstructionsState &S,
3612 const InstructionsState &S,
3650 InstructionsState S = getSameOpcode(Last->Scalars, *TLI);
3753 bool areAltOperandsProfitable(const InstructionsState &S,
3759 getScalarsVectorizationState(const InstructionsState &S, ArrayRef<Value *> VL,
4283 const InstructionsState &S);
4293 bool extendSchedulingRegion(Value *V, const InstructionsState &S);
7524 bool BoUpSLP::areAltOperandsProfitable(const InstructionsState &S,
7638 const InstructionsState &S, ArrayRef<Value *> VL,
8104 auto TryToFindDuplicates = [&](const InstructionsState &S,
8174 InstructionsState S = getSameOpcode(VL, *TLI);
8460 InstructionsState S = getSameOpcode(Op, *TLI);
9777 const InstructionsState &S) {
9850 InstructionsState S = getSameOpcode(Slice, *TLI);
11151 InstructionsState SrcState = getSameOpcode(E->getOperand(0), *TLI);
14610 InstructionsState S = getSameOpcode(VL, *TLI);
17110 const InstructionsState &S) {
17251 Value *V, const InstructionsState &S) {
18590 InstructionsState S = getSameOpcode(ValOps.getArrayRef(), *TLI);
19130 // we permit an alternate opcode via InstructionsState.
19131 InstructionsState S = getSameOpcode(VL, *TLI);
19931 SmallVector<InstructionsState> States;
19936 InstructionsState S = States[I];
21352 InstructionsState S = getSameOpcode({I1, I2}, TLI);
21510 InstructionsState S = getSameOpcode({I1, I2}, *TLI);