Home
last modified time | relevance | path

Searched refs:Ops (Results 1 – 25 of 105) sorted by relevance

12345

/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp62 static void PrintOps(Instruction *I, const SmallVectorImpl<ValueEntry> &Ops) { in PrintOps() argument
65 << *Ops[0].Op->getType() << '\t'; in PrintOps()
66 for (unsigned i = 0, e = Ops.size(); i != e; ++i) { in PrintOps()
68 WriteAsOperand(dbgs(), Ops[i].Op, false, M); in PrintOps()
69 dbgs() << ", #" << Ops[i].Rank << "] "; in PrintOps()
96 void RewriteExprTree(BinaryOperator *I, SmallVectorImpl<ValueEntry> &Ops,
99 SmallVectorImpl<ValueEntry> &Ops);
100 Value *OptimizeAdd(Instruction *I, SmallVectorImpl<ValueEntry> &Ops);
101 void LinearizeExprTree(BinaryOperator *I, SmallVectorImpl<ValueEntry> &Ops);
273 SmallVectorImpl<ValueEntry> &Ops) { in LinearizeExprTree() argument
[all …]
/external/clang/lib/CodeGen/
DCGBuiltin.cpp1413 Value *CodeGenFunction::EmitNeonCall(Function *F, SmallVectorImpl<Value*> &Ops, in EmitNeonCall() argument
1420 Ops[j] = EmitNeonShiftVector(Ops[j], ai->getType(), rightshift); in EmitNeonCall()
1422 Ops[j] = Builder.CreateBitCast(Ops[j], ai->getType(), name); in EmitNeonCall()
1424 return Builder.CreateCall(F, Ops, name); in EmitNeonCall()
1475 SmallVector<Value*, 2> Ops; in EmitARMBuiltinExpr() local
1477 Ops.push_back(EmitScalarExpr(E->getArg(i))); in EmitARMBuiltinExpr()
1481 return Builder.CreateCall(CGM.CreateRuntimeFunction(FTy, Name), Ops); in EmitARMBuiltinExpr()
1518 SmallVector<Value*, 4> Ops; in EmitARMBuiltinExpr() local
1520 Ops.push_back(EmitScalarExpr(E->getArg(i))); in EmitARMBuiltinExpr()
1536 return Builder.CreateExtractElement(Ops[0], EmitScalarExpr(E->getArg(1)), in EmitARMBuiltinExpr()
[all …]
DCGExprScalar.cpp392 Value *EmitMul(const BinOpInfo &Ops) { in EmitMul() argument
393 if (Ops.Ty->isSignedIntegerOrEnumerationType()) { in EmitMul()
396 return Builder.CreateNSWMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul()
398 return Builder.CreateMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul()
400 return EmitOverflowCheckedBinOp(Ops); in EmitMul()
404 if (Ops.LHS->getType()->isFPOrFPVectorTy()) in EmitMul()
405 return Builder.CreateFMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul()
406 return Builder.CreateMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul()
414 Value *EmitOverflowCheckedBinOp(const BinOpInfo &Ops);
423 void EmitUndefinedBehaviorIntegerDivAndRemCheck(const BinOpInfo &Ops,
[all …]
/external/llvm/lib/Analysis/
DScalarEvolution.cpp628 static void GroupByComplexity(SmallVectorImpl<const SCEV *> &Ops, in GroupByComplexity() argument
630 if (Ops.size() < 2) return; // Noop in GroupByComplexity()
631 if (Ops.size() == 2) { in GroupByComplexity()
634 const SCEV *&LHS = Ops[0], *&RHS = Ops[1]; in GroupByComplexity()
641 std::stable_sort(Ops.begin(), Ops.end(), SCEVComplexityCompare(LI)); in GroupByComplexity()
647 for (unsigned i = 0, e = Ops.size(); i != e-2; ++i) { in GroupByComplexity()
648 const SCEV *S = Ops[i]; in GroupByComplexity()
653 for (unsigned j = i+1; j != e && Ops[j]->getSCEVType() == Complexity; ++j) { in GroupByComplexity()
654 if (Ops[j] == S) { // Found a duplicate. in GroupByComplexity()
656 std::swap(Ops[i+1], Ops[j]); in GroupByComplexity()
[all …]
DConstantFolding.cpp99 Constant *Ops = C; // don't take the address of C! in FoldBitCast() local
100 return FoldBitCast(ConstantVector::get(Ops), DestTy, TD); in FoldBitCast()
571 static Constant *CastGEPIndices(ArrayRef<Constant *> Ops, in CastGEPIndices() argument
579 for (unsigned i = 1, e = Ops.size(); i != e; ++i) { in CastGEPIndices()
581 !isa<StructType>(GetElementPtrInst::getIndexedType(Ops[0]->getType(), in CastGEPIndices()
582 Ops.slice(1, i-1)))) && in CastGEPIndices()
583 Ops[i]->getType() != IntPtrTy) { in CastGEPIndices()
585 NewIdxs.push_back(ConstantExpr::getCast(CastInst::getCastOpcode(Ops[i], in CastGEPIndices()
589 Ops[i], IntPtrTy)); in CastGEPIndices()
591 NewIdxs.push_back(Ops[i]); in CastGEPIndices()
[all …]
DScalarEvolutionExpander.cpp309 static void SimplifyAddOperands(SmallVectorImpl<const SCEV *> &Ops, in SimplifyAddOperands() argument
313 for (unsigned i = Ops.size(); i > 0 && isa<SCEVAddRecExpr>(Ops[i-1]); --i) in SimplifyAddOperands()
316 SmallVector<const SCEV *, 8> NoAddRecs(Ops.begin(), Ops.end() - NumAddRecs); in SimplifyAddOperands()
317 SmallVector<const SCEV *, 8> AddRecs(Ops.end() - NumAddRecs, Ops.end()); in SimplifyAddOperands()
324 Ops.clear(); in SimplifyAddOperands()
326 Ops.append(Add->op_begin(), Add->op_end()); in SimplifyAddOperands()
328 Ops.push_back(Sum); in SimplifyAddOperands()
330 Ops.append(AddRecs.begin(), AddRecs.end()); in SimplifyAddOperands()
338 static void SplitAddRecs(SmallVectorImpl<const SCEV *> &Ops, in SplitAddRecs() argument
343 for (unsigned i = 0, e = Ops.size(); i != e; ++i) in SplitAddRecs()
[all …]
/external/llvm/lib/Target/ARM/
DARMISelDAGToDAG.cpp1386 SDValue Ops[]= { Base, AMOpc, getAL(CurDAG), in SelectARMIndexedLoad() local
1389 MVT::i32, MVT::Other, Ops, 5); in SelectARMIndexedLoad()
1393 SDValue Ops[]= { Base, Offset, AMOpc, getAL(CurDAG), in SelectARMIndexedLoad() local
1396 MVT::i32, MVT::Other, Ops, 6); in SelectARMIndexedLoad()
1442 SDValue Ops[]= { Base, Offset, getAL(CurDAG), in SelectT2IndexedLoad() local
1445 MVT::Other, Ops, 5); in SelectT2IndexedLoad()
1459 const SDValue Ops[] = { RegClass, V0, SubReg0, V1, SubReg1 }; in PairSRegs() local
1460 return CurDAG->getMachineNode(TargetOpcode::REG_SEQUENCE, dl, VT, Ops, 5); in PairSRegs()
1470 const SDValue Ops[] = { RegClass, V0, SubReg0, V1, SubReg1 }; in PairDRegs() local
1471 return CurDAG->getMachineNode(TargetOpcode::REG_SEQUENCE, dl, VT, Ops, 5); in PairDRegs()
[all …]
/external/llvm/lib/VMCore/
DIRBuilder.cpp55 static CallInst *createCallHelper(Value *Callee, ArrayRef<Value *> Ops, in createCallHelper() argument
57 CallInst *CI = CallInst::Create(Callee, Ops, ""); in createCallHelper()
67 Value *Ops[] = { Ptr, Val, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemSet() local
72 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemSet()
87 Value *Ops[] = { Dst, Src, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemCpy() local
92 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemCpy()
107 Value *Ops[] = { Dst, Src, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemMove() local
112 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemMove()
130 Value *Ops[] = { Size, Ptr }; in CreateLifetimeStart() local
133 return createCallHelper(TheFn, Ops, this); in CreateLifetimeStart()
[all …]
/external/llvm/lib/Target/XCore/
DXCoreISelDAGToDAG.cpp185 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local
188 Ops, 3); in Select()
191 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local
194 Ops, 3); in Select()
197 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local
200 Ops, 4); in Select()
203 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local
206 Ops, 4); in Select()
209 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local
212 Ops, 4); in Select()
[all …]
/external/clang/test/CodeGenCXX/
Dmangle.cpp274 struct Ops { struct
275 Ops& operator+(const Ops&);
276 Ops& operator-(const Ops&);
277 Ops& operator&(const Ops&);
278 Ops& operator*(const Ops&);
284 Ops& Ops::operator+(const Ops&) { return *this; } in operator +() argument
286 Ops& Ops::operator-(const Ops&) { return *this; } in operator -() argument
288 Ops& Ops::operator&(const Ops&) { return *this; } in operator &() argument
290 Ops& Ops::operator*(const Ops&) { return *this; } in operator *() argument
/external/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h677 SDNode(unsigned Opc, const DebugLoc dl, SDVTList VTs, const SDValue *Ops,
687 OperandList[i].setInitial(Ops[i]);
701 void InitOperands(SDUse *Ops, const SDValue &Op0) {
702 Ops[0].setUser(this);
703 Ops[0].setInitial(Op0);
705 OperandList = Ops;
710 void InitOperands(SDUse *Ops, const SDValue &Op0, const SDValue &Op1) {
711 Ops[0].setUser(this);
712 Ops[0].setInitial(Op0);
713 Ops[1].setUser(this);
[all …]
DSelectionDAG.h413 SDValue Ops[] = { Chain, getRegister(Reg, N.getValueType()), N, Glue };
414 return getNode(ISD::CopyToReg, dl, VTs, Ops, Glue.getNode() ? 4 : 3);
421 SDValue Ops[] = { Chain, Reg, N, Glue };
422 return getNode(ISD::CopyToReg, dl, VTs, Ops, Glue.getNode() ? 4 : 3);
427 SDValue Ops[] = { Chain, getRegister(Reg, VT) };
428 return getNode(ISD::CopyFromReg, dl, VTs, Ops, 2);
437 SDValue Ops[] = { Chain, getRegister(Reg, VT), Glue };
438 return getNode(ISD::CopyFromReg, dl, VTs, Ops, Glue.getNode() ? 3 : 2);
480 SDValue Ops[] = { Chain, Op };
481 return getNode(ISD::CALLSEQ_START, DebugLoc(), VTs, Ops, 2);
[all …]
/external/llvm/include/llvm/Analysis/
DScalarEvolution.h573 const SCEV *getAddExpr(SmallVectorImpl<const SCEV *> &Ops,
577 SmallVector<const SCEV *, 2> Ops;
578 Ops.push_back(LHS);
579 Ops.push_back(RHS);
580 return getAddExpr(Ops, Flags);
584 SmallVector<const SCEV *, 3> Ops;
585 Ops.push_back(Op0);
586 Ops.push_back(Op1);
587 Ops.push_back(Op2);
588 return getAddExpr(Ops, Flags);
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp338 const SDValue *Ops, unsigned NumOps) { in AddNodeIDOperands() argument
339 for (; NumOps; --NumOps, ++Ops) { in AddNodeIDOperands()
340 ID.AddPointer(Ops->getNode()); in AddNodeIDOperands()
341 ID.AddInteger(Ops->getResNo()); in AddNodeIDOperands()
348 const SDUse *Ops, unsigned NumOps) { in AddNodeIDOperands() argument
349 for (; NumOps; --NumOps, ++Ops) { in AddNodeIDOperands()
350 ID.AddPointer(Ops->getNode()); in AddNodeIDOperands()
351 ID.AddInteger(Ops->getResNo()); in AddNodeIDOperands()
722 SDValue Ops[] = { Op }; in FindModifiedNodeSlot() local
724 AddNodeIDNode(ID, N->getOpcode(), N->getVTList(), Ops, 1); in FindModifiedNodeSlot()
[all …]
DLegalizeVectorTypes.cpp385 SmallVector<SDValue, 8> Ops(N->getNumOperands()); in ScalarizeVecOp_CONCAT_VECTORS() local
387 Ops[i] = GetScalarizedVector(N->getOperand(i)); in ScalarizeVecOp_CONCAT_VECTORS()
389 &Ops[0], Ops.size()); in ScalarizeVecOp_CONCAT_VECTORS()
862 SmallVector<int, 16> Ops; in SplitVecRes_VECTOR_SHUFFLE() local
882 Ops.push_back(-1); in SplitVecRes_VECTOR_SHUFFLE()
910 Ops.push_back(Idx + OpNo * NewElts); in SplitVecRes_VECTOR_SHUFFLE()
950 Output = DAG.getVectorShuffle(NewVT, dl, Op0, Op1, &Ops[0]); in SplitVecRes_VECTOR_SHUFFLE()
953 Ops.clear(); in SplitVecRes_VECTOR_SHUFFLE()
1504 SmallVector<SDValue, 16> Ops(NumConcat); in WidenVecRes_Convert() local
1505 Ops[0] = InOp; in WidenVecRes_Convert()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp435 SDValue Ops[] = { Op0, Op1, getI32Imm(SH), getI32Imm(MB), in SelectBitfieldInsert() local
437 return CurDAG->getMachineNode(PPC::RLWIMI, dl, MVT::i32, Ops, 5); in SelectBitfieldInsert()
624 SDValue Ops[] = { Op, getI32Imm(27), getI32Imm(5), getI32Imm(31) }; in SelectSETCC() local
625 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops, 4); in SelectSETCC()
636 SDValue Ops[] = { Op, getI32Imm(1), getI32Imm(31), getI32Imm(31) }; in SelectSETCC() local
637 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops, 4); in SelectSETCC()
643 SDValue Ops[] = { T, getI32Imm(1), getI32Imm(31), getI32Imm(31) }; in SelectSETCC() local
644 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops, 4); in SelectSETCC()
673 SDValue Ops[] = { AN, getI32Imm(1), getI32Imm(31), getI32Imm(31) }; in SelectSETCC() local
674 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops, 4); in SelectSETCC()
[all …]
/external/llvm/lib/Transforms/Utils/
DValueMapper.cpp125 SmallVector<Constant*, 8> Ops; in MapValue() local
126 Ops.reserve(NumOperands); in MapValue()
128 Ops.push_back(cast<Constant>(C->getOperand(j))); in MapValue()
132 Ops.push_back(cast<Constant>(Mapped)); in MapValue()
136 Ops.push_back(MapValue(cast<Constant>(C->getOperand(OpNo)), VM, in MapValue()
141 return VM[V] = CE->getWithOperands(Ops, NewTy); in MapValue()
143 return VM[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in MapValue()
145 return VM[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in MapValue()
147 return VM[V] = ConstantVector::get(Ops); in MapValue()
/external/llvm/lib/CodeGen/
DIntrinsicLowering.cpp463 Value *Ops[3]; in LowerIntrinsicCall() local
464 Ops[0] = CI->getArgOperand(0); in LowerIntrinsicCall()
465 Ops[1] = CI->getArgOperand(1); in LowerIntrinsicCall()
466 Ops[2] = Size; in LowerIntrinsicCall()
467 ReplaceCallWith("memcpy", CI, Ops, Ops+3, CI->getArgOperand(0)->getType()); in LowerIntrinsicCall()
474 Value *Ops[3]; in LowerIntrinsicCall() local
475 Ops[0] = CI->getArgOperand(0); in LowerIntrinsicCall()
476 Ops[1] = CI->getArgOperand(1); in LowerIntrinsicCall()
477 Ops[2] = Size; in LowerIntrinsicCall()
478 ReplaceCallWith("memmove", CI, Ops, Ops+3, CI->getArgOperand(0)->getType()); in LowerIntrinsicCall()
[all …]
DTargetInstrInfoImpl.cpp292 const SmallVectorImpl<unsigned> &Ops) const { in canFoldMemoryOperand()
293 return MI->isCopy() && Ops.size() == 1 && canFoldCopy(MI, Ops[0]); in canFoldMemoryOperand()
304 const SmallVectorImpl<unsigned> &Ops, in foldMemoryOperand() argument
307 for (unsigned i = 0, e = Ops.size(); i != e; ++i) in foldMemoryOperand()
308 if (MI->getOperand(Ops[i]).isDef()) in foldMemoryOperand()
318 if (MachineInstr *NewMI = foldMemoryOperandImpl(MF, MI, Ops, FI)) { in foldMemoryOperand()
339 if (!MI->isCopy() || Ops.size() != 1) in foldMemoryOperand()
342 const TargetRegisterClass *RC = canFoldCopy(MI, Ops[0]); in foldMemoryOperand()
346 const MachineOperand &MO = MI->getOperand(1-Ops[0]); in foldMemoryOperand()
362 const SmallVectorImpl<unsigned> &Ops, in foldMemoryOperand() argument
[all …]
DInlineSpiller.cpp867 SmallVector<std::pair<MachineInstr*, unsigned>, 8> Ops; in reMaterializeFor() local
869 MIBundleOperands(MI).analyzeVirtReg(VirtReg.reg, &Ops); in reMaterializeFor()
879 foldMemoryOperand(Ops, RM.OrigMI)) { in reMaterializeFor()
896 for (unsigned i = 0, e = Ops.size(); i != e; ++i) { in reMaterializeFor()
897 MachineOperand &MO = MI->getOperand(Ops[i].second); in reMaterializeFor()
1014 foldMemoryOperand(ArrayRef<std::pair<MachineInstr*, unsigned> > Ops, in foldMemoryOperand() argument
1016 if (Ops.empty()) in foldMemoryOperand()
1019 MachineInstr *MI = Ops.front().first; in foldMemoryOperand()
1020 if (Ops.back().first != MI || MI->isBundled()) in foldMemoryOperand()
1029 for (unsigned i = 0, e = Ops.size(); i != e; ++i) { in foldMemoryOperand()
[all …]
/external/llvm/include/llvm/Support/
DMDBuilder.h106 Value *Ops[3] = { createString(Name), Parent, Flags }; variable
107 return MDNode::get(Context, Ops);
109 Value *Ops[2] = { createString(Name), Parent }; variable
110 return MDNode::get(Context, Ops);
/external/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp141 SDValue Ops[] = { Chain, DAG.getValueType(AVT), InFlag }; in EmitTargetCodeForMemset() local
142 Chain = DAG.getNode(X86ISD::REP_STOS, dl, Tys, Ops, array_lengthof(Ops)); in EmitTargetCodeForMemset()
155 SDValue Ops[] = { Chain, DAG.getValueType(MVT::i8), InFlag }; in EmitTargetCodeForMemset() local
156 Chain = DAG.getNode(X86ISD::REP_STOS, dl, Tys, Ops, array_lengthof(Ops)); in EmitTargetCodeForMemset()
235 SDValue Ops[] = { Chain, DAG.getValueType(AVT), InFlag }; in EmitTargetCodeForMemcpy() local
236 SDValue RepMovs = DAG.getNode(X86ISD::REP_MOVS, dl, Tys, Ops, in EmitTargetCodeForMemcpy()
237 array_lengthof(Ops)); in EmitTargetCodeForMemcpy()
/external/llvm/lib/Target/PTX/
DPTXISelLowering.cpp413 std::vector<SDValue> Ops; in LowerCall() local
415 Ops.resize(outSize + Ins.size() + 4); in LowerCall()
417 Ops[0] = Chain; in LowerCall()
421 Ops[Ins.size()+2] = Callee; in LowerCall()
424 Ops[Ins.size()+3] = DAG.getTargetConstant(outSize, MVT::i32); in LowerCall()
433 Ops[Ins.size()+4] = ParamValue0; in LowerCall()
449 Ops[Ins.size()+5] = ParamValue1; in LowerCall()
485 Ops[i+Ins.size()+4] = ParamValue; in LowerCall()
492 Ops[1] = DAG.getTargetConstant(Ins.size(), MVT::i32); in LowerCall()
499 Ops[i+2] = ParamValue; in LowerCall()
[all …]
DPTXISelDAGToDAG.cpp102 SDValue Ops[] = { Target, Pred, PredOp, Chain }; in SelectBRCOND() local
103 return CurDAG->getMachineNode(PTX::BRAdp, dl, MVT::Other, Ops, 4); in SelectBRCOND()
137 SDValue Ops[] = { Index, Pred, PredOp, Chain }; in SelectREADPARAM() local
138 return CurDAG->getMachineNode(OpCode, dl, VT, Ops, 4); in SelectREADPARAM()
175 SDValue Ops[] = { Value, Pred, PredOp, Chain }; in SelectWRITEPARAM() local
176 SDNode* Ret = CurDAG->getMachineNode(OpCode, dl, MVT::Other, Ops, 4); in SelectWRITEPARAM()
/external/llvm/utils/TableGen/
DCodeGenInstruction.cpp198 static void ParseConstraint(const std::string &CStr, CGIOperandList &Ops) { in ParseConstraint() argument
209 std::pair<unsigned,unsigned> Op = Ops.ParseOperandName(Name, false); in ParseConstraint()
212 if (!Ops[Op.first].Constraints[Op.second].isNone()) in ParseConstraint()
214 Ops[Op.first].Constraints[Op.second] = in ParseConstraint()
230 std::pair<unsigned,unsigned> DestOp = Ops.ParseOperandName(DestOpName, false); in ParseConstraint()
238 Ops.ParseOperandName(Name.substr(wpos), false); in ParseConstraint()
243 unsigned FlatOpNo = Ops.getFlattenedOperandNumber(SrcOp); in ParseConstraint()
245 if (!Ops[DestOp.first].Constraints[DestOp.second].isNone()) in ParseConstraint()
247 Ops[DestOp.first].Constraints[DestOp.second] = in ParseConstraint()
251 static void ParseConstraints(const std::string &CStr, CGIOperandList &Ops) { in ParseConstraints() argument
[all …]

12345