/external/llvm/lib/Target/NVPTX/ |
D | NVPTXISelDAGToDAG.cpp | 706 SDValue Ops[] = { getI32Imm(isVolatile), getI32Imm(codeAddrSpace), in SelectLoad() local 709 NVPTXLD = CurDAG->getMachineNode(Opcode, dl, TargetVT, MVT::Other, Ops); in SelectLoad() 734 SDValue Ops[] = { getI32Imm(isVolatile), getI32Imm(codeAddrSpace), in SelectLoad() local 737 NVPTXLD = CurDAG->getMachineNode(Opcode, dl, TargetVT, MVT::Other, Ops); in SelectLoad() 787 SDValue Ops[] = { getI32Imm(isVolatile), getI32Imm(codeAddrSpace), in SelectLoad() local 790 NVPTXLD = CurDAG->getMachineNode(Opcode, dl, TargetVT, MVT::Other, Ops); in SelectLoad() 839 SDValue Ops[] = { getI32Imm(isVolatile), getI32Imm(codeAddrSpace), in SelectLoad() local 842 NVPTXLD = CurDAG->getMachineNode(Opcode, dl, TargetVT, MVT::Other, Ops); in SelectLoad() 965 SDValue Ops[] = { getI32Imm(IsVolatile), getI32Imm(CodeAddrSpace), in SelectLoadVector() local 968 LD = CurDAG->getMachineNode(Opcode, DL, N->getVTList(), Ops); in SelectLoadVector() [all …]
|
/external/clang/lib/CodeGen/ |
D | CGBuiltin.cpp | 1911 Value *CodeGenFunction::EmitNeonCall(Function *F, SmallVectorImpl<Value*> &Ops, in EmitNeonCall() argument 1918 Ops[j] = EmitNeonShiftVector(Ops[j], ai->getType(), rightshift); in EmitNeonCall() 1920 Ops[j] = Builder.CreateBitCast(Ops[j], ai->getType(), name); in EmitNeonCall() 1922 return Builder.CreateCall(F, Ops, name); in EmitNeonCall() 2668 SmallVectorImpl<Value *> &Ops, in EmitCommonNeonSISDBuiltinExpr() argument 2691 std::swap(Ops[0], Ops[1]); in EmitCommonNeonSISDBuiltinExpr() 2707 if (Ops[j]->getType()->getPrimitiveSizeInBits() == in EmitCommonNeonSISDBuiltinExpr() 2711 assert(ArgTy->isVectorTy() && !Ops[j]->getType()->isVectorTy()); in EmitCommonNeonSISDBuiltinExpr() 2714 Ops[j] = in EmitCommonNeonSISDBuiltinExpr() 2715 CGF.Builder.CreateTruncOrBitCast(Ops[j], ArgTy->getVectorElementType()); in EmitCommonNeonSISDBuiltinExpr() [all …]
|
D | CGExprScalar.cpp | 451 Value *EmitMul(const BinOpInfo &Ops) { in EmitMul() argument 452 if (Ops.Ty->isSignedIntegerOrEnumerationType()) { in EmitMul() 455 return Builder.CreateMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul() 458 return Builder.CreateNSWMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul() 461 return EmitOverflowCheckedBinOp(Ops); in EmitMul() 465 if (Ops.Ty->isUnsignedIntegerType() && in EmitMul() 467 return EmitOverflowCheckedBinOp(Ops); in EmitMul() 469 if (Ops.LHS->getType()->isFPOrFPVectorTy()) in EmitMul() 470 return Builder.CreateFMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul() 471 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() 181 void RewriteExprTree(BinaryOperator *I, SmallVectorImpl<ValueEntry> &Ops); 183 SmallVectorImpl<ValueEntry> &Ops); 184 Value *OptimizeAdd(Instruction *I, SmallVectorImpl<ValueEntry> &Ops); 185 Value *OptimizeXor(Instruction *I, SmallVectorImpl<ValueEntry> &Ops); 190 bool collectMultiplyFactors(SmallVectorImpl<ValueEntry> &Ops, [all …]
|
D | Float2Int.cpp | 257 Op = [](ArrayRef<ConstantRange> Ops) { in walkForwards() argument 258 assert(Ops.size() == 2 && "FAdd is a binary operator!"); in walkForwards() 259 return Ops[0].add(Ops[1]); in walkForwards() 264 Op = [](ArrayRef<ConstantRange> Ops) { in walkForwards() argument 265 assert(Ops.size() == 2 && "FSub is a binary operator!"); in walkForwards() 266 return Ops[0].sub(Ops[1]); in walkForwards() 271 Op = [](ArrayRef<ConstantRange> Ops) { in walkForwards() argument 272 assert(Ops.size() == 2 && "FMul is a binary operator!"); in walkForwards() 273 return Ops[0].multiply(Ops[1]); in walkForwards() 283 Op = [](ArrayRef<ConstantRange> Ops) { in walkForwards() argument [all …]
|
/external/llvm/lib/IR/ |
D | DebugInfoMetadata.cpp | 60 SmallVector<Metadata *, 2> Ops; in getImpl() local 61 Ops.push_back(Scope); in getImpl() 63 Ops.push_back(InlinedAt); in getImpl() 64 return storeImpl(new (Ops.size()) in getImpl() 65 MDLocation(Context, Storage, Line, Column, Ops), in getImpl() 238 Metadata *Ops[] = {Name}; in getImpl() local 239 DEFINE_GETIMPL_STORE(MDEnumerator, (Value), Ops); in getImpl() 249 Metadata *Ops[] = {nullptr, nullptr, Name}; in getImpl() local 251 Ops); in getImpl() 263 Metadata *Ops[] = {File, Scope, Name, BaseType, ExtraData}; in getImpl() local [all …]
|
D | ConstantsContext.h | 421 ArrayRef<Constant *> Ops; 424 ConstantExprKeyType(unsigned Opcode, ArrayRef<Constant *> Ops, 429 SubclassData(SubclassData), Ops(Ops), Indexes(Indexes) {} 433 SubclassData(CE->isCompare() ? CE->getPredicate() : 0), Ops(Operands), 444 Ops = Storage; 449 SubclassOptionalData == X.SubclassOptionalData && Ops == X.Ops && 458 if (Ops.size() != CE->getNumOperands()) 462 for (unsigned I = 0, E = Ops.size(); I != E; ++I) 463 if (Ops[I] != CE->getOperand(I)) 472 hash_combine_range(Ops.begin(), Ops.end()), [all …]
|
D | MDBuilder.cpp | 105 Metadata *Ops[3] = {createString(Name), Parent, createConstant(Flags)}; in createTBAANode() local 106 return MDNode::get(Context, Ops); in createTBAANode() 108 Metadata *Ops[2] = {createString(Name), Parent}; in createTBAANode() local 109 return MDNode::get(Context, Ops); in createTBAANode() 118 Metadata *Ops[2] = {createString(Name), Domain}; in createAliasScope() local 119 return MDNode::get(Context, Ops); in createAliasScope() 139 SmallVector<Metadata *, 4> Ops(Fields.size() * 2 + 1); in createTBAAStructTypeNode() local 141 Ops[0] = createString(Name); in createTBAAStructTypeNode() 143 Ops[i * 2 + 1] = Fields[i].first; in createTBAAStructTypeNode() 144 Ops[i * 2 + 2] = createConstant(ConstantInt::get(Int64, Fields[i].second)); in createTBAAStructTypeNode() [all …]
|
D | IRBuilder.cpp | 56 static CallInst *createCallHelper(Value *Callee, ArrayRef<Value *> Ops, in createCallHelper() argument 59 CallInst *CI = CallInst::Create(Callee, Ops, Name); in createCallHelper() 70 Value *Ops[] = { Ptr, Val, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemSet() local 75 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemSet() 97 Value *Ops[] = { Dst, Src, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemCpy() local 102 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemCpy() 128 Value *Ops[] = { Dst, Src, Size, getInt32(Align), getInt1(isVolatile) }; in CreateMemMove() local 133 CallInst *CI = createCallHelper(TheFn, Ops, this); in CreateMemMove() 157 Value *Ops[] = { Size, Ptr }; in CreateLifetimeStart() local 160 return createCallHelper(TheFn, Ops, this); in CreateLifetimeStart() [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 | 162 size_t TotalSize = Ops.size() + 1; in Finalize() 169 PersonalityIndex = (Ops.size() <= 3) ? ARM::EHABI::AEABI_UNWIND_CPP_PR0 in Finalize() 173 assert(Ops.size() <= 3 && "too many opcodes for __aeabi_unwind_cpp_pr0"); in Finalize() 178 size_t TotalSize = Ops.size() + 2; in Finalize() 189 OpStreamer.EmitByte(Ops[j]); in Finalize()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 642 static void GroupByComplexity(SmallVectorImpl<const SCEV *> &Ops, in GroupByComplexity() argument 644 if (Ops.size() < 2) return; // Noop in GroupByComplexity() 645 if (Ops.size() == 2) { in GroupByComplexity() 648 const SCEV *&LHS = Ops[0], *&RHS = Ops[1]; in GroupByComplexity() 655 std::stable_sort(Ops.begin(), Ops.end(), SCEVComplexityCompare(LI)); in GroupByComplexity() 661 for (unsigned i = 0, e = Ops.size(); i != e-2; ++i) { in GroupByComplexity() 662 const SCEV *S = Ops[i]; in GroupByComplexity() 667 for (unsigned j = i+1; j != e && Ops[j]->getSCEVType() == Complexity; ++j) { in GroupByComplexity() 668 if (Ops[j] == S) { // Found a duplicate. in GroupByComplexity() 670 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, DL); in FoldBitCast() 674 static Constant *CastGEPIndices(Type *SrcTy, ArrayRef<Constant *> Ops, in CastGEPIndices() argument 681 for (unsigned i = 1, e = Ops.size(); i != e; ++i) { in CastGEPIndices() 684 cast<PointerType>(Ops[0]->getType()->getScalarType()) 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/XCore/ |
D | XCoreISelDAGToDAG.cpp | 162 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local 165 Ops); in Select() 168 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local 171 Ops); in Select() 174 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local 177 Ops); in Select() 180 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local 183 Ops); in Select() 186 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local 189 Ops); in Select() [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/llvm/lib/CodeGen/SelectionDAG/ |
D | StatepointLowering.cpp | 387 SmallVectorImpl<SDValue> &Ops, in lowerIncomingStatepointValue() argument 396 Ops.push_back( in lowerIncomingStatepointValue() 398 Ops.push_back(Builder.DAG.getTargetConstant(C->getSExtValue(), MVT::i64)); in lowerIncomingStatepointValue() 403 Ops.push_back(Builder.DAG.getTargetFrameIndex(FI->getIndex(), in lowerIncomingStatepointValue() 414 Ops.push_back(Res.first); in lowerIncomingStatepointValue() 428 static void lowerStatepointMetaArgs(SmallVectorImpl<SDValue> &Ops, in lowerStatepointMetaArgs() argument 493 Ops.push_back( in lowerStatepointMetaArgs() 495 Ops.push_back(Builder.DAG.getTargetConstant(NumVMSArgs, MVT::i64)); in lowerStatepointMetaArgs() 511 lowerIncomingStatepointValue(Incoming, Ops, Builder); in lowerStatepointMetaArgs() 523 lowerIncomingStatepointValue(Incoming, Ops, Builder); in lowerStatepointMetaArgs() [all …]
|
D | SelectionDAG.cpp | 386 ArrayRef<SDValue> Ops) { in AddNodeIDOperands() argument 387 for (auto& Op : Ops) { in AddNodeIDOperands() 396 ArrayRef<SDUse> Ops) { in AddNodeIDOperands() argument 397 for (auto& Op : Ops) { in AddNodeIDOperands() 875 SDValue Ops[] = { Op }; in FindModifiedNodeSlot() local 877 AddNodeIDNode(ID, N->getOpcode(), N->getVTList(), Ops); in FindModifiedNodeSlot() 893 SDValue Ops[] = { Op1, Op2 }; in FindModifiedNodeSlot() local 895 AddNodeIDNode(ID, N->getOpcode(), N->getVTList(), Ops); in FindModifiedNodeSlot() 906 SDNode *SelectionDAG::FindModifiedNodeSlot(SDNode *N, ArrayRef<SDValue> Ops, in FindModifiedNodeSlot() argument 912 AddNodeIDNode(ID, N->getOpcode(), N->getVTList(), Ops); in FindModifiedNodeSlot() [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | SelectionDAGNodes.h | 713 ArrayRef<SDValue> Ops) 716 OperandList(Ops.size() ? new SDUse[Ops.size()] : nullptr), 717 ValueList(VTs.VTs), UseList(nullptr), NumOperands(Ops.size()), 720 assert(NumOperands == Ops.size() && 724 for (unsigned i = 0; i != Ops.size(); ++i) { 727 OperandList[i].setInitial(Ops[i]); 745 void InitOperands(SDUse *Ops, const SDValue &Op0) { 746 Ops[0].setUser(this); 747 Ops[0].setInitial(Op0); 749 OperandList = Ops; [all …]
|
D | SelectionDAG.h | 514 SDValue Ops[] = { Chain, getRegister(Reg, N.getValueType()), N, Glue }; 516 ArrayRef<SDValue>(Ops, Glue.getNode() ? 4 : 3)); 523 SDValue Ops[] = { Chain, Reg, N, Glue }; 525 ArrayRef<SDValue>(Ops, Glue.getNode() ? 4 : 3)); 530 SDValue Ops[] = { Chain, getRegister(Reg, VT) }; 531 return getNode(ISD::CopyFromReg, dl, VTs, Ops); 540 SDValue Ops[] = { Chain, getRegister(Reg, VT), Glue }; 542 ArrayRef<SDValue>(Ops, Glue.getNode() ? 3 : 2)); 620 SDValue Ops[] = { Chain, Op }; 621 return getNode(ISD::CALLSEQ_START, DL, VTs, Ops); [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/llvm/include/llvm/Analysis/ |
D | ScalarEvolution.h | 614 const SCEV *getAddExpr(SmallVectorImpl<const SCEV *> &Ops, 618 SmallVector<const SCEV *, 2> Ops; 619 Ops.push_back(LHS); 620 Ops.push_back(RHS); 621 return getAddExpr(Ops, Flags); 625 SmallVector<const SCEV *, 3> Ops; 626 Ops.push_back(Op0); 627 Ops.push_back(Op1); 628 Ops.push_back(Op2); 629 return getAddExpr(Ops, Flags); [all …]
|
/external/llvm/lib/CodeGen/ |
D | IntrinsicLowering.cpp | 470 Value *Ops[3]; in LowerIntrinsicCall() local 471 Ops[0] = CI->getArgOperand(0); in LowerIntrinsicCall() 472 Ops[1] = CI->getArgOperand(1); in LowerIntrinsicCall() 473 Ops[2] = Size; in LowerIntrinsicCall() 474 ReplaceCallWith("memcpy", CI, Ops, Ops+3, CI->getArgOperand(0)->getType()); in LowerIntrinsicCall() 481 Value *Ops[3]; in LowerIntrinsicCall() local 482 Ops[0] = CI->getArgOperand(0); in LowerIntrinsicCall() 483 Ops[1] = CI->getArgOperand(1); in LowerIntrinsicCall() 484 Ops[2] = Size; in LowerIntrinsicCall() 485 ReplaceCallWith("memmove", CI, Ops, Ops+3, CI->getArgOperand(0)->getType()); in LowerIntrinsicCall() [all …]
|
D | TargetInstrInfo.cpp | 380 ArrayRef<unsigned> Ops) const { in canFoldMemoryOperand() 381 return MI->isCopy() && Ops.size() == 1 && canFoldCopy(MI, Ops[0]); in canFoldMemoryOperand() 385 ArrayRef<unsigned> Ops, int FrameIndex, in foldPatchpoint() argument 404 for (unsigned Op : Ops) { in foldPatchpoint() 419 if (std::find(Ops.begin(), Ops.end(), i) != Ops.end()) { in foldPatchpoint() 447 ArrayRef<unsigned> Ops, in foldMemoryOperand() argument 450 for (unsigned i = 0, e = Ops.size(); i != e; ++i) in foldMemoryOperand() 451 if (MI->getOperand(Ops[i]).isDef()) in foldMemoryOperand() 465 NewMI = foldPatchpoint(MF, MI, Ops, FI, *this); in foldMemoryOperand() 468 NewMI =foldMemoryOperandImpl(MF, MI, Ops, FI); in foldMemoryOperand() [all …]
|
/external/llvm/include/llvm/IR/ |
D | DebugInfoMetadata.h | 366 ArrayRef<Metadata *> Ops) 367 : DebugNode(C, MDEnumeratorKind, Storage, dwarf::DW_TAG_enumerator, Ops), 412 ArrayRef<Metadata *> Ops) 413 : DebugNode(C, ID, Storage, Tag, Ops) {} 465 MDFile(LLVMContext &C, StorageType Storage, ArrayRef<Metadata *> Ops) 466 : MDScope(C, MDFileKind, Storage, dwarf::DW_TAG_file_type, Ops) {} 530 uint64_t OffsetInBits, unsigned Flags, ArrayRef<Metadata *> Ops) 531 : MDScope(C, ID, Storage, Tag, Ops), Line(Line), Flags(Flags), 609 ArrayRef<Metadata *> Ops) 611 0, Ops), [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 115 SmallVector<Constant*, 8> Ops; in MapValue() local 116 Ops.reserve(NumOperands); in MapValue() 118 Ops.push_back(cast<Constant>(C->getOperand(j))); in MapValue() 122 Ops.push_back(cast<Constant>(Mapped)); in MapValue() 126 Ops.push_back(MapValue(cast<Constant>(C->getOperand(OpNo)), VM, in MapValue() 131 return VM[V] = CE->getWithOperands(Ops, NewTy); in MapValue() 133 return VM[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops); in MapValue() 135 return VM[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in MapValue() 137 return VM[V] = ConstantVector::get(Ops); in MapValue()
|