/external/clang/lib/CodeGen/ |
D | CGBuiltin.cpp | 1741 Value *CodeGenFunction::EmitNeonCall(Function *F, SmallVectorImpl<Value*> &Ops, in EmitNeonCall() argument 1748 Ops[j] = EmitNeonShiftVector(Ops[j], ai->getType(), rightshift); in EmitNeonCall() 1750 Ops[j] = Builder.CreateBitCast(Ops[j], ai->getType(), name); in EmitNeonCall() 1752 return Builder.CreateCall(F, Ops, name); in EmitNeonCall() 2474 SmallVectorImpl<Value *> &Ops, in EmitCommonNeonSISDBuiltinExpr() argument 2497 std::swap(Ops[0], Ops[1]); in EmitCommonNeonSISDBuiltinExpr() 2513 if (Ops[j]->getType()->getPrimitiveSizeInBits() == in EmitCommonNeonSISDBuiltinExpr() 2517 assert(ArgTy->isVectorTy() && !Ops[j]->getType()->isVectorTy()); in EmitCommonNeonSISDBuiltinExpr() 2520 Ops[j] = in EmitCommonNeonSISDBuiltinExpr() 2521 CGF.Builder.CreateTruncOrBitCast(Ops[j], ArgTy->getVectorElementType()); in EmitCommonNeonSISDBuiltinExpr() [all …]
|
D | CGExprScalar.cpp | 410 Value *EmitMul(const BinOpInfo &Ops) { in EmitMul() argument 411 if (Ops.Ty->isSignedIntegerOrEnumerationType()) { in EmitMul() 414 return Builder.CreateMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul() 417 return Builder.CreateNSWMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul() 420 return EmitOverflowCheckedBinOp(Ops); in EmitMul() 424 if (Ops.Ty->isUnsignedIntegerType() && CGF.SanOpts->UnsignedIntegerOverflow) in EmitMul() 425 return EmitOverflowCheckedBinOp(Ops); in EmitMul() 427 if (Ops.LHS->getType()->isFPOrFPVectorTy()) in EmitMul() 428 return Builder.CreateFMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul() 429 return Builder.CreateMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | Reassociate.cpp | 64 static void PrintOps(Instruction *I, const SmallVectorImpl<ValueEntry> &Ops) { in PrintOps() argument 67 << *Ops[0].Op->getType() << '\t'; in PrintOps() 68 for (unsigned i = 0, e = Ops.size(); i != e; ++i) { in PrintOps() 70 Ops[i].Op->printAsOperand(dbgs(), false, M); in PrintOps() 71 dbgs() << ", #" << Ops[i].Rank << "] "; in PrintOps() 180 void RewriteExprTree(BinaryOperator *I, SmallVectorImpl<ValueEntry> &Ops); 182 SmallVectorImpl<ValueEntry> &Ops); 183 Value *OptimizeAdd(Instruction *I, SmallVectorImpl<ValueEntry> &Ops); 184 Value *OptimizeXor(Instruction *I, SmallVectorImpl<ValueEntry> &Ops); 189 bool collectMultiplyFactors(SmallVectorImpl<ValueEntry> &Ops, [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXISelDAGToDAG.cpp | 478 SDValue Ops[] = { getI32Imm(isVolatile), getI32Imm(codeAddrSpace), in SelectLoad() local 481 NVPTXLD = CurDAG->getMachineNode(Opcode, dl, TargetVT, MVT::Other, Ops); in SelectLoad() 507 SDValue Ops[] = { getI32Imm(isVolatile), getI32Imm(codeAddrSpace), in SelectLoad() local 510 NVPTXLD = CurDAG->getMachineNode(Opcode, dl, TargetVT, MVT::Other, Ops); in SelectLoad() 561 SDValue Ops[] = { getI32Imm(isVolatile), getI32Imm(codeAddrSpace), in SelectLoad() local 564 NVPTXLD = CurDAG->getMachineNode(Opcode, dl, TargetVT, MVT::Other, Ops); in SelectLoad() 613 SDValue Ops[] = { getI32Imm(isVolatile), getI32Imm(codeAddrSpace), in SelectLoad() local 616 NVPTXLD = CurDAG->getMachineNode(Opcode, dl, TargetVT, MVT::Other, Ops); in SelectLoad() 739 SDValue Ops[] = { getI32Imm(IsVolatile), getI32Imm(CodeAddrSpace), in SelectLoadVector() local 742 LD = CurDAG->getMachineNode(Opcode, DL, N->getVTList(), Ops); in SelectLoadVector() [all …]
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMUnwindOpAsm.h | 28 llvm::SmallVector<uint8_t, 32> Ops; 40 Ops.clear(); in Reset() 65 Ops.insert(Ops.end(), Opcodes.begin(), Opcodes.end()); in EmitRaw() 75 Ops.push_back(Opcode & 0xff); in EmitInt8() 80 Ops.push_back((Opcode >> 8) & 0xff); in EmitInt16() 81 Ops.push_back(Opcode & 0xff); in EmitInt16() 86 Ops.insert(Ops.end(), Opcode, Opcode + Size); in EmitBytes()
|
D | ARMUnwindOpAsm.cpp | 192 size_t TotalSize = Ops.size() + 1; in Finalize() 199 PersonalityIndex = (Ops.size() <= 3) ? ARM::EHABI::AEABI_UNWIND_CPP_PR0 in Finalize() 203 assert(Ops.size() <= 3 && "too many opcodes for __aeabi_unwind_cpp_pr0"); in Finalize() 208 size_t TotalSize = Ops.size() + 2; in Finalize() 219 OpStreamer.EmitByte(Ops[j]); in Finalize()
|
/external/llvm/lib/IR/ |
D | MDBuilder.cpp | 88 Value *Ops[3] = {createString(Name), Parent, Flags}; in createTBAANode() local 89 return MDNode::get(Context, Ops); in createTBAANode() 91 Value *Ops[2] = {createString(Name), Parent}; in createTBAANode() local 92 return MDNode::get(Context, Ops); in createTBAANode() 113 SmallVector<Value *, 4> Ops(Fields.size() * 2 + 1); in createTBAAStructTypeNode() local 115 Ops[0] = createString(Name); in createTBAAStructTypeNode() 117 Ops[i * 2 + 1] = Fields[i].first; in createTBAAStructTypeNode() 118 Ops[i * 2 + 2] = ConstantInt::get(Int64, Fields[i].second); in createTBAAStructTypeNode() 120 return MDNode::get(Context, Ops); in createTBAAStructTypeNode() 128 Value *Ops[3] = {createString(Name), Parent, Off}; in createTBAAScalarTypeNode() local [all …]
|
D | IRBuilder.cpp | 55 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() 111 Value *Ops[] = { Dst, Src, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemMove() local 116 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemMove() 134 Value *Ops[] = { Size, Ptr }; in CreateLifetimeStart() local 137 return createCallHelper(TheFn, Ops, this); in CreateLifetimeStart() [all …]
|
/external/llvm/lib/Target/XCore/ |
D | XCoreISelDAGToDAG.cpp | 164 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local 167 Ops); in Select() 170 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local 173 Ops); in Select() 176 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local 179 Ops); in Select() 182 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local 185 Ops); in Select() 188 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local 191 Ops); in Select() [all …]
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 638 static void GroupByComplexity(SmallVectorImpl<const SCEV *> &Ops, in GroupByComplexity() argument 640 if (Ops.size() < 2) return; // Noop in GroupByComplexity() 641 if (Ops.size() == 2) { in GroupByComplexity() 644 const SCEV *&LHS = Ops[0], *&RHS = Ops[1]; in GroupByComplexity() 651 std::stable_sort(Ops.begin(), Ops.end(), SCEVComplexityCompare(LI)); in GroupByComplexity() 657 for (unsigned i = 0, e = Ops.size(); i != e-2; ++i) { in GroupByComplexity() 658 const SCEV *S = Ops[i]; in GroupByComplexity() 663 for (unsigned j = i+1; j != e && Ops[j]->getSCEVType() == Complexity; ++j) { in GroupByComplexity() 664 if (Ops[j] == S) { // Found a duplicate. in GroupByComplexity() 666 std::swap(Ops[i+1], Ops[j]); in GroupByComplexity() [all …]
|
D | ConstantFolding.cpp | 107 Constant *Ops = C; // don't take the address of C! in FoldBitCast() local 108 return FoldBitCast(ConstantVector::get(Ops), DestTy, TD); in FoldBitCast() 672 static Constant *CastGEPIndices(ArrayRef<Constant *> Ops, in CastGEPIndices() argument 682 for (unsigned i = 1, e = Ops.size(); i != e; ++i) { in CastGEPIndices() 685 Ops[0]->getType(), in CastGEPIndices() 686 Ops.slice(1, i - 1)))) && in CastGEPIndices() 687 Ops[i]->getType() != IntPtrTy) { in CastGEPIndices() 689 NewIdxs.push_back(ConstantExpr::getCast(CastInst::getCastOpcode(Ops[i], in CastGEPIndices() 693 Ops[i], IntPtrTy)); in CastGEPIndices() 695 NewIdxs.push_back(Ops[i]); in CastGEPIndices() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMISelDAGToDAG.cpp | 1498 SDValue Ops[]= { Base, AMOpc, getAL(CurDAG), in SelectARMIndexedLoad() local 1501 MVT::i32, MVT::Other, Ops); in SelectARMIndexedLoad() 1505 SDValue Ops[]= { Base, Offset, AMOpc, getAL(CurDAG), in SelectARMIndexedLoad() local 1508 MVT::i32, MVT::Other, Ops); in SelectARMIndexedLoad() 1554 SDValue Ops[]= { Base, Offset, getAL(CurDAG), in SelectT2IndexedLoad() local 1557 MVT::Other, Ops); in SelectT2IndexedLoad() 1570 const SDValue Ops[] = { RegClass, V0, SubReg0, V1, SubReg1 }; in createGPRPairNode() local 1571 return CurDAG->getMachineNode(TargetOpcode::REG_SEQUENCE, dl, VT, Ops); in createGPRPairNode() 1581 const SDValue Ops[] = { RegClass, V0, SubReg0, V1, SubReg1 }; in createSRegPairNode() local 1582 return CurDAG->getMachineNode(TargetOpcode::REG_SEQUENCE, dl, VT, Ops); in createSRegPairNode() [all …]
|
/external/clang/test/CodeGenCXX/ |
D | mangle.cpp | 274 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/clang/include/clang/ASTMatchers/Dynamic/ |
D | VariantValue.h | 68 virtual void makeTypedMatcher(MatcherOps &Ops) const = 0; 114 TypedMatcherOps<T> Ops; in hasTypedMatcher() local 115 if (Value) Value->makeTypedMatcher(Ops); in hasTypedMatcher() 116 return Ops.hasMatcher(); in hasTypedMatcher() 125 TypedMatcherOps<T> Ops; in getTypedMatcher() local 126 Value->makeTypedMatcher(Ops); in getTypedMatcher() 127 assert(Ops.hasMatcher() && "hasTypedMatcher<T>() == false"); in getTypedMatcher() 128 return Ops.matcher(); in getTypedMatcher()
|
/external/llvm/include/llvm/CodeGen/ |
D | SelectionDAGNodes.h | 742 ArrayRef<SDValue> Ops) 745 OperandList(Ops.size() ? new SDUse[Ops.size()] : nullptr), 747 NumOperands(Ops.size()), NumValues(VTs.NumVTs), 749 for (unsigned i = 0; i != Ops.size(); ++i) { 751 OperandList[i].setInitial(Ops[i]); 765 void InitOperands(SDUse *Ops, const SDValue &Op0) { 766 Ops[0].setUser(this); 767 Ops[0].setInitial(Op0); 769 OperandList = Ops; 774 void InitOperands(SDUse *Ops, const SDValue &Op0, const SDValue &Op1) { [all …]
|
D | SelectionDAG.h | 497 SDValue Ops[] = { Chain, getRegister(Reg, N.getValueType()), N, Glue }; 499 ArrayRef<SDValue>(Ops, Glue.getNode() ? 4 : 3)); 506 SDValue Ops[] = { Chain, Reg, N, Glue }; 508 ArrayRef<SDValue>(Ops, Glue.getNode() ? 4 : 3)); 513 SDValue Ops[] = { Chain, getRegister(Reg, VT) }; 514 return getNode(ISD::CopyFromReg, dl, VTs, Ops); 523 SDValue Ops[] = { Chain, getRegister(Reg, VT), Glue }; 525 ArrayRef<SDValue>(Ops, Glue.getNode() ? 3 : 2)); 599 SDValue Ops[] = { Chain, Op }; 600 return getNode(ISD::CALLSEQ_START, DL, VTs, Ops); [all …]
|
/external/llvm/lib/CodeGen/ |
D | TargetInstrInfo.cpp | 375 const SmallVectorImpl<unsigned> &Ops) const { in canFoldMemoryOperand() 376 return MI->isCopy() && Ops.size() == 1 && canFoldCopy(MI, Ops[0]); in canFoldMemoryOperand() 381 const SmallVectorImpl<unsigned> &Ops, in foldPatchpoint() argument 401 for (SmallVectorImpl<unsigned>::const_iterator I = Ops.begin(), E = Ops.end(); in foldPatchpoint() 417 if (std::find(Ops.begin(), Ops.end(), i) != Ops.end()) { in foldPatchpoint() 446 const SmallVectorImpl<unsigned> &Ops, in foldMemoryOperand() argument 449 for (unsigned i = 0, e = Ops.size(); i != e; ++i) in foldMemoryOperand() 450 if (MI->getOperand(Ops[i]).isDef()) in foldMemoryOperand() 464 NewMI = foldPatchpoint(MF, MI, Ops, FI, *this); in foldMemoryOperand() 467 NewMI =foldMemoryOperandImpl(MF, MI, Ops, FI); in foldMemoryOperand() [all …]
|
D | IntrinsicLowering.cpp | 469 Value *Ops[3]; in LowerIntrinsicCall() local 470 Ops[0] = CI->getArgOperand(0); in LowerIntrinsicCall() 471 Ops[1] = CI->getArgOperand(1); in LowerIntrinsicCall() 472 Ops[2] = Size; in LowerIntrinsicCall() 473 ReplaceCallWith("memcpy", CI, Ops, Ops+3, CI->getArgOperand(0)->getType()); in LowerIntrinsicCall() 480 Value *Ops[3]; in LowerIntrinsicCall() local 481 Ops[0] = CI->getArgOperand(0); in LowerIntrinsicCall() 482 Ops[1] = CI->getArgOperand(1); in LowerIntrinsicCall() 483 Ops[2] = Size; in LowerIntrinsicCall() 484 ReplaceCallWith("memmove", CI, Ops, Ops+3, CI->getArgOperand(0)->getType()); in LowerIntrinsicCall() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | ScalarEvolution.h | 598 const SCEV *getAddExpr(SmallVectorImpl<const SCEV *> &Ops, 602 SmallVector<const SCEV *, 2> Ops; 603 Ops.push_back(LHS); 604 Ops.push_back(RHS); 605 return getAddExpr(Ops, Flags); 609 SmallVector<const SCEV *, 3> Ops; 610 Ops.push_back(Op0); 611 Ops.push_back(Op1); 612 Ops.push_back(Op2); 613 return getAddExpr(Ops, Flags); [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 369 ArrayRef<SDValue> Ops) { in AddNodeIDOperands() argument 370 for (auto& Op : Ops) { in AddNodeIDOperands() 379 ArrayRef<SDUse> Ops) { in AddNodeIDOperands() argument 380 for (auto& Op : Ops) { in AddNodeIDOperands() 799 SDValue Ops[] = { Op }; in FindModifiedNodeSlot() local 801 AddNodeIDNode(ID, N->getOpcode(), N->getVTList(), Ops); in FindModifiedNodeSlot() 817 SDValue Ops[] = { Op1, Op2 }; in FindModifiedNodeSlot() local 819 AddNodeIDNode(ID, N->getOpcode(), N->getVTList(), Ops); in FindModifiedNodeSlot() 830 SDNode *SelectionDAG::FindModifiedNodeSlot(SDNode *N, ArrayRef<SDValue> Ops, in FindModifiedNodeSlot() argument 836 AddNodeIDNode(ID, N->getOpcode(), N->getVTList(), Ops); in FindModifiedNodeSlot() [all …]
|
/external/clang/lib/ASTMatchers/Dynamic/ |
D | VariantValue.cpp | 39 virtual void makeTypedMatcher(MatcherOps &Ops) const { in makeTypedMatcher() 41 if (Ops.canConstructFrom(Matcher, Ignore)) in makeTypedMatcher() 42 Ops.constructFrom(Matcher); in makeTypedMatcher() 72 virtual void makeTypedMatcher(MatcherOps &Ops) const { in makeTypedMatcher() 78 if (Ops.canConstructFrom(Matchers[i], IsExactMatch)) { in makeTypedMatcher() 92 Ops.constructFrom(*Found); in makeTypedMatcher() 118 virtual void makeTypedMatcher(MatcherOps &Ops) const { in makeTypedMatcher() 119 Ops.constructVariadicOperator(Func, Args); in makeTypedMatcher()
|
/external/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 148 SmallVector<Constant*, 8> Ops; in MapValue() local 149 Ops.reserve(NumOperands); in MapValue() 151 Ops.push_back(cast<Constant>(C->getOperand(j))); in MapValue() 155 Ops.push_back(cast<Constant>(Mapped)); in MapValue() 159 Ops.push_back(MapValue(cast<Constant>(C->getOperand(OpNo)), VM, in MapValue() 164 return VM[V] = CE->getWithOperands(Ops, NewTy); in MapValue() 166 return VM[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in MapValue() 168 return VM[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in MapValue() 170 return VM[V] = ConstantVector::get(Ops); in MapValue()
|
/external/llvm/lib/Target/R600/ |
D | SIISelLowering.cpp | 680 SDValue Ops [] = { in LowerOperation() local 690 Op->getVTList(), Ops, VT, MMO); in LowerOperation() 715 SDValue Ops [] = { in LowerOperation() local 738 Op->getVTList(), Ops, VT, MMO); in LowerOperation() 796 SmallVector<SDValue, 4> Ops; in LowerBRCOND() local 797 Ops.push_back(BRCOND.getOperand(0)); in LowerBRCOND() 799 Ops.push_back(Intr->getOperand(i)); in LowerBRCOND() 800 Ops.push_back(Target); in LowerBRCOND() 805 DAG.getVTList(Res), Ops).getNode(); in LowerBRCOND() 809 SDValue Ops[] = { in LowerBRCOND() local [all …]
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelDAGToDAG.cpp | 451 SDValue Ops[] = { Op0, MLAOp1, MLAOp2, LaneIdxVal }; in SelectMLAV64LaneV128() local 472 return CurDAG->getMachineNode(MLAOpc, SDLoc(N), N->getValueType(0), Ops); in SelectMLAV64LaneV128() 486 SDValue Ops[] = { SMULLOp0, SMULLOp1, LaneIdxVal }; in SelectMULLV64LaneV128() local 515 return CurDAG->getMachineNode(SMULLOpc, SDLoc(N), N->getValueType(0), Ops); in SelectMULLV64LaneV128() 861 SmallVector<SDValue, 4> Ops; in createTuple() local 864 Ops.push_back( in createTuple() 869 Ops.push_back(Regs[i]); in createTuple() 870 Ops.push_back(CurDAG->getTargetConstant(SubRegs[i], MVT::i32)); in createTuple() 874 CurDAG->getMachineNode(TargetOpcode::REG_SEQUENCE, DL, MVT::Untyped, Ops); in createTuple() 891 SmallVector<SDValue, 6> Ops; in SelectTable() local [all …]
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCISelDAGToDAG.cpp | 482 SDValue Ops[] = { Op0, Op1, getI32Imm(SH), getI32Imm(MB), in SelectBitfieldInsert() local 484 return CurDAG->getMachineNode(PPC::RLWIMI, dl, MVT::i32, Ops); in SelectBitfieldInsert() 762 SDValue Ops[] = { Op, getI32Imm(27), getI32Imm(5), getI32Imm(31) }; in SelectSETCC() local 763 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops); in SelectSETCC() 774 SDValue Ops[] = { Op, getI32Imm(1), getI32Imm(31), getI32Imm(31) }; in SelectSETCC() local 775 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops); in SelectSETCC() 781 SDValue Ops[] = { T, getI32Imm(1), getI32Imm(31), getI32Imm(31) }; in SelectSETCC() local 782 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops); in SelectSETCC() 811 SDValue Ops[] = { AN, getI32Imm(1), getI32Imm(31), getI32Imm(31) }; in SelectSETCC() local 812 return CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, Ops); in SelectSETCC() [all …]
|