Home
last modified time | relevance | path

Searched refs:NewOps (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp709 static Value *buildNew(Instruction *I, ArrayRef<Value*> NewOps) { in buildNew() argument
732 assert(NewOps.size() == 2 && "binary operator with #ops != 2"); in buildNew()
735 NewOps[0], NewOps[1], "", BO); in buildNew()
748 assert(NewOps.size() == 2 && "icmp with #ops != 2"); in buildNew()
750 NewOps[0], NewOps[1]); in buildNew()
752 assert(NewOps.size() == 2 && "fcmp with #ops != 2"); in buildNew()
754 NewOps[0], NewOps[1]); in buildNew()
768 NewOps[0]->getType()->getVectorNumElements()); in buildNew()
769 assert(NewOps.size() == 1 && "cast with #ops != 1"); in buildNew()
770 return CastInst::Create(cast<CastInst>(I)->getOpcode(), NewOps[0], DestTy, in buildNew()
[all …]
/external/llvm/lib/IR/
DUser.cpp74 Use *NewOps = getOperandList(); in growHungoffUses() local
77 std::copy(OldOps, OldOps + OldNumUses, NewOps); in growHungoffUses()
84 reinterpret_cast<char *>(NewOps + NewNumUses) + sizeof(Use::UserRef); in growHungoffUses()
DConstants.cpp1121 SmallVector<Constant*, 8> NewOps; in getWithOperandReplaced() local
1123 NewOps.push_back(i == OpNo ? Op : getOperand(i)); in getWithOperandReplaced()
1125 return getWithOperands(NewOps); in getWithOperandReplaced()
2827 SmallVector<Constant*, 8> NewOps; in handleOperandChangeImpl() local
2837 NewOps.push_back(Op); in handleOperandChangeImpl()
2841 if (Constant *C = getWithOperands(NewOps, getType(), true)) in handleOperandChangeImpl()
2846 NewOps, this, From, To, NumUpdated, OperandNo); in handleOperandChangeImpl()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DScalarEvolutionExpander.cpp396 SmallVector<const SCEV *, 8> NewOps; in expandAddToGEP() local
404 NewOps.push_back(Remainder); in expandAddToGEP()
409 NewOps.push_back(Ops[i]); in expandAddToGEP()
414 Ops = NewOps; in expandAddToGEP()
726 SmallVector<const SCEV *, 4> NewOps; in visitAddExpr() local
734 NewOps.push_back(X); in visitAddExpr()
736 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum); in visitAddExpr()
741 SmallVector<const SCEV *, 4> NewOps; in visitAddExpr() local
742 NewOps.push_back(isa<Instruction>(Sum) ? SE.getUnknown(Sum) : in visitAddExpr()
745 NewOps.push_back(I->second); in visitAddExpr()
[all …]
DScalarEvolution.cpp1371 SmallVector<const SCEV *, 8> &NewOps, in CollectAddOperandsWithScales() argument
1399 CollectAddOperandsWithScales(M, NewOps, AccumulatedConstant, in CollectAddOperandsWithScales()
1410 NewOps.push_back(Pair.first->first); in CollectAddOperandsWithScales()
1423 NewOps.push_back(Pair.first->first); in CollectAddOperandsWithScales()
1610 SmallVector<const SCEV *, 8> NewOps; in getAddExpr() local
1612 if (CollectAddOperandsWithScales(M, NewOps, AccumulatedConstant, in getAddExpr()
1619 for (SmallVector<const SCEV *, 8>::const_iterator I = NewOps.begin(), in getAddExpr()
1620 E = NewOps.end(); I != E; ++I) in getAddExpr()
1916 SmallVector<const SCEV *, 4> NewOps; in getMulExpr() local
1922 NewOps.push_back(Mul); in getMulExpr()
[all …]
/external/swiftshader/third_party/LLVM/utils/TableGen/
DPseudoLoweringEmitter.cpp64 unsigned NewOps = in addDagOperandMapping() local
66 OpsAdded += NewOps; in addDagOperandMapping()
68 BaseIdx += NewOps - 1; in addDagOperandMapping()
/external/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp414 SmallVector<const SCEV *, 8> NewOps; in expandAddToGEP() local
421 NewOps.push_back(Remainder); in expandAddToGEP()
426 NewOps.push_back(Op); in expandAddToGEP()
431 Ops = NewOps; in expandAddToGEP()
695 SmallVector<const SCEV *, 4> NewOps; in visitAddExpr() local
703 NewOps.push_back(X); in visitAddExpr()
705 Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum); in visitAddExpr()
710 SmallVector<const SCEV *, 4> NewOps; in visitAddExpr() local
711 NewOps.push_back(isa<Instruction>(Sum) ? SE.getUnknown(Sum) : in visitAddExpr()
714 NewOps.push_back(I->second); in visitAddExpr()
[all …]
DScalarEvolution.cpp1903 SmallVectorImpl<const SCEV *> &NewOps, in CollectAddOperandsWithScales() argument
1931 CollectAddOperandsWithScales(M, NewOps, AccumulatedConstant, in CollectAddOperandsWithScales()
1941 NewOps.push_back(Pair.first->first); in CollectAddOperandsWithScales()
1954 NewOps.push_back(Pair.first->first); in CollectAddOperandsWithScales()
2171 SmallVector<const SCEV *, 8> NewOps; in getAddExpr() local
2173 if (CollectAddOperandsWithScales(M, NewOps, AccumulatedConstant, in getAddExpr()
2186 for (const SCEV *NewOp : NewOps) in getAddExpr()
2488 SmallVector<const SCEV *, 4> NewOps; in getMulExpr() local
2493 NewOps.push_back(Mul); in getMulExpr()
2496 return getAddExpr(NewOps); in getMulExpr()
[all …]
/external/llvm/utils/TableGen/
DPseudoLoweringEmitter.cpp111 unsigned NewOps = in addDagOperandMapping() local
113 OpsAdded += NewOps; in addDagOperandMapping()
115 BaseIdx += NewOps - 1; in addDagOperandMapping()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DLegalizeTypes.cpp472 SmallVector<SDValue, 8> NewOps; in AnalyzeNewNode() local
483 if (!NewOps.empty()) { in AnalyzeNewNode()
485 NewOps.push_back(Op); in AnalyzeNewNode()
488 NewOps.append(N->op_begin(), N->op_begin() + i); in AnalyzeNewNode()
489 NewOps.push_back(Op); in AnalyzeNewNode()
494 if (!NewOps.empty()) { in AnalyzeNewNode()
495 SDNode *M = DAG.UpdateNodeOperands(N, &NewOps[0], NewOps.size()); in AnalyzeNewNode()
DLegalizeIntegerTypes.cpp909 SmallVector<SDValue, 16> NewOps; in PromoteIntOp_BUILD_VECTOR() local
911 NewOps.push_back(GetPromotedInteger(N->getOperand(i))); in PromoteIntOp_BUILD_VECTOR()
913 return SDValue(DAG.UpdateNodeOperands(N, &NewOps[0], NumElts), 0); in PromoteIntOp_BUILD_VECTOR()
953 SDValue NewOps[6]; in PromoteIntOp_MEMBARRIER() local
955 NewOps[0] = N->getOperand(0); in PromoteIntOp_MEMBARRIER()
956 for (unsigned i = 1; i < array_lengthof(NewOps); ++i) { in PromoteIntOp_MEMBARRIER()
958 NewOps[i] = DAG.getZeroExtendInReg(Flag, dl, MVT::i1); in PromoteIntOp_MEMBARRIER()
960 return SDValue(DAG.UpdateNodeOperands(N, NewOps, array_lengthof(NewOps)), 0); in PromoteIntOp_MEMBARRIER()
3001 SmallVector<SDValue, 8> NewOps; in PromoteIntOp_CONCAT_VECTORS() local
3002 NewOps.reserve(NumElems); in PromoteIntOp_CONCAT_VECTORS()
[all …]
DLegalizeVectorTypes.cpp1676 SmallVector<SDValue, 16> NewOps(N->op_begin(), N->op_end()); in WidenVecRes_BUILD_VECTOR() local
1677 NewOps.reserve(WidenNumElts); in WidenVecRes_BUILD_VECTOR()
1679 NewOps.push_back(DAG.getUNDEF(EltVT)); in WidenVecRes_BUILD_VECTOR()
1681 return DAG.getNode(ISD::BUILD_VECTOR, dl, WidenVT, &NewOps[0], NewOps.size()); in WidenVecRes_BUILD_VECTOR()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypes.cpp487 SmallVector<SDValue, 8> NewOps; in AnalyzeNewNode() local
498 if (!NewOps.empty()) { in AnalyzeNewNode()
500 NewOps.push_back(Op); in AnalyzeNewNode()
503 NewOps.append(N->op_begin(), N->op_begin() + i); in AnalyzeNewNode()
504 NewOps.push_back(Op); in AnalyzeNewNode()
509 if (!NewOps.empty()) { in AnalyzeNewNode()
510 SDNode *M = DAG.UpdateNodeOperands(N, NewOps); in AnalyzeNewNode()
DLegalizeIntegerTypes.cpp1063 SmallVector<SDValue, 16> NewOps; in PromoteIntOp_BUILD_VECTOR() local
1065 NewOps.push_back(GetPromotedInteger(N->getOperand(i))); in PromoteIntOp_BUILD_VECTOR()
1067 return SDValue(DAG.UpdateNodeOperands(N, NewOps), 0); in PromoteIntOp_BUILD_VECTOR()
1226 SmallVector<SDValue, 4> NewOps(N->op_begin(), N->op_end()); in PromoteIntOp_MLOAD() local
1227 NewOps[OpNo] = Mask; in PromoteIntOp_MLOAD()
1228 return SDValue(DAG.UpdateNodeOperands(N, NewOps), 0); in PromoteIntOp_MLOAD()
1234 SmallVector<SDValue, 5> NewOps(N->op_begin(), N->op_end()); in PromoteIntOp_MGATHER() local
1238 NewOps[OpNo] = PromoteTargetBoolean(N->getOperand(OpNo), DataVT); in PromoteIntOp_MGATHER()
1240 NewOps[OpNo] = GetPromotedInteger(N->getOperand(OpNo)); in PromoteIntOp_MGATHER()
1241 return SDValue(DAG.UpdateNodeOperands(N, NewOps), 0); in PromoteIntOp_MGATHER()
[all …]
DLegalizeDAG.cpp4259 SmallVector<SDValue, 8> NewOps; in PromoteNode() local
4262 NewOps.push_back(DAG.getNode(ISD::BITCAST, SDLoc(Op), MidVT, Op)); in PromoteNode()
4266 SDValue Concat = DAG.getNode(ISD::CONCAT_VECTORS, SL, NVT, NewOps); in PromoteNode()
4301 SmallVector<SDValue, 8> NewOps; in PromoteNode() local
4308 NewOps.push_back(Elt); in PromoteNode()
4311 SDValue NewVec = DAG.getNode(ISD::BUILD_VECTOR, SL, MidVT, NewOps); in PromoteNode()
DLegalizeVectorTypes.cpp2632 SmallVector<SDValue, 16> NewOps(N->op_begin(), N->op_end()); in WidenVecRes_BUILD_VECTOR() local
2634 NewOps.append(WidenNumElts - NumElts, DAG.getUNDEF(EltVT)); in WidenVecRes_BUILD_VECTOR()
2636 return DAG.getNode(ISD::BUILD_VECTOR, dl, WidenVT, NewOps); in WidenVecRes_BUILD_VECTOR()
DDAGCombiner.cpp13265 SmallVector<SDValue, 4> NewOps; in simplifyShuffleOperandRecursively() local
13266 NewOps.reserve(V->getNumOperands()); in simplifyShuffleOperandRecursively()
13275 NewOps.push_back( in simplifyShuffleOperandRecursively()
13278 FoundSimplification |= Op == NewOps.back(); in simplifyShuffleOperandRecursively()
13282 V = DAG.getNode(ISD::CONCAT_VECTORS, DL, VT, NewOps); in simplifyShuffleOperandRecursively()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp542 SmallVector<const SCEV *, 8> NewOps(Add->op_begin(), Add->op_end()); in ExtractImmediate() local
543 int64_t Result = ExtractImmediate(NewOps.front(), SE); in ExtractImmediate()
545 S = SE.getAddExpr(NewOps); in ExtractImmediate()
548 SmallVector<const SCEV *, 8> NewOps(AR->op_begin(), AR->op_end()); in ExtractImmediate() local
549 int64_t Result = ExtractImmediate(NewOps.front(), SE); in ExtractImmediate()
551 S = SE.getAddRecExpr(NewOps, AR->getLoop(), in ExtractImmediate()
569 SmallVector<const SCEV *, 8> NewOps(Add->op_begin(), Add->op_end()); in ExtractSymbol() local
570 GlobalValue *Result = ExtractSymbol(NewOps.back(), SE); in ExtractSymbol()
572 S = SE.getAddExpr(NewOps); in ExtractSymbol()
575 SmallVector<const SCEV *, 8> NewOps(AR->op_begin(), AR->op_end()); in ExtractSymbol() local
[all …]
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelDAGToDAG.cpp1530 SDValue NewOps[8]; in PreprocessISelDAG() local
1532 assert(OpN < array_lengthof(NewOps)); in PreprocessISelDAG()
1535 NewOps[Op] = M->getOperand(Op); in PreprocessISelDAG()
1541 NewOps[Op] = SDValue(Mov, 0); in PreprocessISelDAG()
1544 CurDAG->UpdateNodeOperands(M, makeArrayRef(NewOps, OpN)); in PreprocessISelDAG()
DSIISelLowering.cpp3033 SmallVector<SDValue, 8> NewOps(MemNode->op_begin(), MemNode->op_end()); in PerformDAGCombine() local
3035 NewOps[N->getOpcode() == ISD::STORE ? 2 : 1] = NewPtr; in PerformDAGCombine()
3036 return SDValue(DAG.UpdateNodeOperands(MemNode, NewOps), 0); in PerformDAGCombine()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DInstructions.cpp235 Use *NewOps = allocHungoffUses(ReservedSpace); in growOperands() local
238 NewOps[i] = OldOps[i]; in growOperands()
240 OperandList = NewOps; in growOperands()
3191 Use *NewOps = allocHungoffUses(NumOps); in growOperands() local
3194 NewOps[i] = OldOps[i]; in growOperands()
3196 OperandList = NewOps; in growOperands()
3234 Use *NewOps = allocHungoffUses(NumOps); in growOperands() local
3237 NewOps[i] = OldOps[i]; in growOperands()
3238 OperandList = NewOps; in growOperands()
/external/llvm/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp631 SmallVector<const SCEV *, 8> NewOps(Add->op_begin(), Add->op_end()); in ExtractImmediate() local
632 int64_t Result = ExtractImmediate(NewOps.front(), SE); in ExtractImmediate()
634 S = SE.getAddExpr(NewOps); in ExtractImmediate()
637 SmallVector<const SCEV *, 8> NewOps(AR->op_begin(), AR->op_end()); in ExtractImmediate() local
638 int64_t Result = ExtractImmediate(NewOps.front(), SE); in ExtractImmediate()
640 S = SE.getAddRecExpr(NewOps, AR->getLoop(), in ExtractImmediate()
657 SmallVector<const SCEV *, 8> NewOps(Add->op_begin(), Add->op_end()); in ExtractSymbol() local
658 GlobalValue *Result = ExtractSymbol(NewOps.back(), SE); in ExtractSymbol()
660 S = SE.getAddExpr(NewOps); in ExtractSymbol()
663 SmallVector<const SCEV *, 8> NewOps(AR->op_begin(), AR->op_end()); in ExtractSymbol() local
[all …]
/external/swiftshader/third_party/LLVM/lib/Bitcode/Reader/
DBitcodeReader.cpp284 SmallVector<Constant*, 64> NewOps; in ResolveConstantForwardRefs() local
327 NewOps.push_back(cast<Constant>(NewOp)); in ResolveConstantForwardRefs()
333 NewC = ConstantArray::get(UserCA->getType(), NewOps); in ResolveConstantForwardRefs()
335 NewC = ConstantStruct::get(UserCS->getType(), NewOps); in ResolveConstantForwardRefs()
337 NewC = ConstantVector::get(NewOps); in ResolveConstantForwardRefs()
340 NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps); in ResolveConstantForwardRefs()
345 NewOps.clear(); in ResolveConstantForwardRefs()
/external/llvm/lib/Transforms/Utils/
DInlineFunction.cpp770 SmallVector<Metadata *, 4> NewOps; in CloneAliasScopeMetadata() local
774 NewOps.push_back(MDMap[M]); in CloneAliasScopeMetadata()
776 NewOps.push_back(const_cast<Metadata *>(V)); in CloneAliasScopeMetadata()
779 MDNode *NewM = MDNode::get(CalledFunc->getContext(), NewOps); in CloneAliasScopeMetadata()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp1021 SmallVector<Constant*, 64> NewOps; in resolveConstantForwardRefs() local
1064 NewOps.push_back(cast<Constant>(NewOp)); in resolveConstantForwardRefs()
1070 NewC = ConstantArray::get(UserCA->getType(), NewOps); in resolveConstantForwardRefs()
1072 NewC = ConstantStruct::get(UserCS->getType(), NewOps); in resolveConstantForwardRefs()
1074 NewC = ConstantVector::get(NewOps); in resolveConstantForwardRefs()
1077 NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps); in resolveConstantForwardRefs()
1082 NewOps.clear(); in resolveConstantForwardRefs()

12