Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOperations.cpp18 void llvm::describeFuzzerIntOps(std::vector<fuzzerop::OpDescriptor> &Ops) { in describeFuzzerIntOps() argument
19 Ops.push_back(binOpDescriptor(1, Instruction::Add)); in describeFuzzerIntOps()
20 Ops.push_back(binOpDescriptor(1, Instruction::Sub)); in describeFuzzerIntOps()
21 Ops.push_back(binOpDescriptor(1, Instruction::Mul)); in describeFuzzerIntOps()
22 Ops.push_back(binOpDescriptor(1, Instruction::SDiv)); in describeFuzzerIntOps()
23 Ops.push_back(binOpDescriptor(1, Instruction::UDiv)); in describeFuzzerIntOps()
24 Ops.push_back(binOpDescriptor(1, Instruction::SRem)); in describeFuzzerIntOps()
25 Ops.push_back(binOpDescriptor(1, Instruction::URem)); in describeFuzzerIntOps()
26 Ops.push_back(binOpDescriptor(1, Instruction::Shl)); in describeFuzzerIntOps()
27 Ops.push_back(binOpDescriptor(1, Instruction::LShr)); in describeFuzzerIntOps()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DMDBuilder.cpp77 SmallVector<Metadata *, 8> Ops; in createFunctionEntryCount() local
79 Ops.push_back(createString("synthetic_function_entry_count")); in createFunctionEntryCount()
81 Ops.push_back(createString("function_entry_count")); in createFunctionEntryCount()
82 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, Count))); in createFunctionEntryCount()
87 Ops.push_back(createConstant(ConstantInt::get(Int64Ty, ID))); in createFunctionEntryCount()
89 return MDNode::get(Context, Ops); in createFunctionEntryCount()
114 SmallVector<Metadata *, 4> Ops; in createCallees() local
116 Ops.push_back(createConstant(F)); in createCallees()
117 return MDNode::get(Context, Ops); in createCallees()
123 SmallVector<Metadata *, 4> Ops; in createCallbackEncoding() local
[all …]
H A DDIExpressionOptimizer.cpp192 ArrayRef<DIExpression::ExprOperand> Ops, in tryFoldNoOpMath() argument
196 if (isNeutralElement(Ops[1].getOp(), Const1)) { in tryFoldNoOpMath()
208 ArrayRef<DIExpression::ExprOperand> Ops, in tryFoldConstants() argument
212 auto Const2 = isConstantVal(Ops[1]); in tryFoldConstants()
217 Const1, *Const2, static_cast<dwarf::LocationAtom>(Ops[2].getOp())); in tryFoldConstants()
219 consumeOneOperator(Cursor, Loc, Ops[0]); in tryFoldConstants()
233 ArrayRef<DIExpression::ExprOperand> Ops, in tryFoldCommutativeMath() argument
237 auto Const2 = isConstantVal(Ops[2]); in tryFoldCommutativeMath()
238 auto Operand1 = static_cast<dwarf::LocationAtom>(Ops[1].getOp()); in tryFoldCommutativeMath()
239 auto Operand2 = static_cast<dwarf::LocationAtom>(Ops[3].getOp()); in tryFoldCommutativeMath()
[all …]
H A DDebugInfoMetadata.cpp98 SmallVector<Metadata *, 2> Ops; in getImpl() local
99 Ops.push_back(Scope); in getImpl()
101 Ops.push_back(InlinedAt); in getImpl()
102 return storeImpl(new (Ops.size(), Storage) DILocation( in getImpl()
103 Context, Storage, Line, Column, Ops, ImplicitCode), in getImpl()
452 ArrayRef<Metadata *> Ops) in DISubrange() argument
453 : DINode(C, DISubrangeKind, Storage, dwarf::DW_TAG_subrange_type, Ops) {} in DISubrange()
477 Metadata *Ops[] = {CountNode, LB, UB, Stride}; in getImpl() local
478 DEFINE_GETIMPL_STORE_NO_CONSTRUCTOR_ARGS(DISubrange, Ops); in getImpl()
565 ArrayRef<Metadata *> Ops) in DIGenericSubrange() argument
[all …]
H A DConstantsContext.h380 ArrayRef<Constant *> Ops;
405 ConstantExprKeyType(unsigned Opcode, ArrayRef<Constant *> Ops,
410 : Opcode(Opcode), SubclassOptionalData(SubclassOptionalData), Ops(Ops),
416 SubclassOptionalData(CE->getRawSubclassOptionalData()), Ops(Operands),
431 Ops = Storage;
443 SubclassOptionalData == X.SubclassOptionalData && Ops == X.Ops &&
453 if (Ops.size() != CE->getNumOperands())
455 for (unsigned I = 0, E = Ops.size(); I != E; ++I)
456 if (Ops[I] != CE->getOperand(I))
470 hash_combine_range(Ops.begin(), Ops.end()),
[all …]
H A DIRBuilder.cpp80 IRBuilderBase::createCallHelper(Function *Callee, ArrayRef<Value *> Ops, in createCallHelper() argument
83 CallInst *CI = CreateCall(Callee, Ops, OpBundles, Name); in createCallHelper()
142 Value *Ops[] = {Ptr, Val, Size, getInt1(isVolatile)}; in CreateMemSet() local
147 CallInst *CI = CreateCall(TheFn, Ops); in CreateMemSet()
170 Value *Ops[] = {Dst, Val, Size, getInt1(IsVolatile)}; in CreateMemSetInline() local
175 CallInst *CI = CreateCall(TheFn, Ops); in CreateMemSetInline()
197 Value *Ops[] = {Ptr, Val, Size, getInt32(ElementSize)}; in CreateElementUnorderedAtomicMemSet() local
203 CallInst *CI = CreateCall(TheFn, Ops); in CreateElementUnorderedAtomicMemSet()
227 Value *Ops[] = {Dst, Src, Size, getInt1(isVolatile)}; in CreateMemTransferInst() local
232 CallInst *CI = CreateCall(TheFn, Ops); in CreateMemTransferInst()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp82 static void PrintOps(Instruction *I, const SmallVectorImpl<ValueEntry> &Ops) { in PrintOps() argument
85 << *Ops[0].Op->getType() << '\t'; in PrintOps()
86 for (unsigned i = 0, e = Ops.size(); i != e; ++i) { in PrintOps()
88 Ops[i].Op->printAsOperand(dbgs(), false, M); in PrintOps()
89 dbgs() << ", #" << Ops[i].Rank << "] "; in PrintOps()
381 SmallVectorImpl<RepeatedValue> &Ops, in LinearizeExprTree() argument
539 Ops.push_back(std::make_pair(V, Weight)); in LinearizeExprTree()
557 if (Ops.empty()) { in LinearizeExprTree()
560 Ops.emplace_back(Identity, 1); in LinearizeExprTree()
569 SmallVectorImpl<ValueEntry> &Ops, in RewriteExprTree() argument
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A Driscv_vector.td62 std::rotate(Ops.begin(), Ops.begin() + 1, Ops.end() - 1);
64 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType));
65 Ops.push_back(ConstantInt::get(Ops.back()->getType(), PolicyAttrs));
66 IntrinsicTypes = {ResultType, Ops[4]->getType()};
69 Ops.insert(Ops.begin(), llvm::PoisonValue::get(ResultType));
70 IntrinsicTypes = {ResultType, Ops[3]->getType()};
72 Value *NewVL = Ops[2];
73 Ops.erase(Ops.begin() + 2);
75 llvm::Value *LoadValue = Builder.CreateCall(F, Ops, "");
149 std::swap(Ops[0], Ops[2]);
[all …]
H A Driscv_sifive_vector.td160 (HasMaskedOff ? Ops.size() == 6 : Ops.size() == 5) :
161 (HasMaskedOff ? Ops.size() == 5 : Ops.size() == 4);
169 Operands.push_back(Ops[IsMasked ? 1 : 0]);
171 Operands.push_back(Ops[Offset]); // op0
172 Operands.push_back(Ops[Offset + 1]); // op1
175 Operands.push_back(Ops[0]); // mask
178 Operands.push_back(Ops[Offset + 2]); // frm
179 Operands.push_back(Ops[Offset + 3]); // vl
181 Operands.push_back(ConstantInt::get(Ops[Offset + 2]->getType(), 7)); // frm
182 Operands.push_back(Ops[Offset + 2]); // vl
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp6402 Value *CodeGenFunction::EmitNeonCall(Function *F, SmallVectorImpl<Value*> &Ops, in EmitNeonCall() argument
6412 Ops[j] = EmitNeonShiftVector(Ops[j], ai->getType(), rightshift); in EmitNeonCall()
6414 Ops[j] = Builder.CreateBitCast(Ops[j], ai->getType(), name); in EmitNeonCall()
6418 return Builder.CreateConstrainedFPCall(F, Ops, name); in EmitNeonCall()
6420 return Builder.CreateCall(F, Ops, name); in EmitNeonCall()
7599 SmallVectorImpl<Value *> &Ops, const CallExpr *E) { in EmitCommonNeonSISDBuiltinExpr() argument
7621 std::swap(Ops[0], Ops[1]); in EmitCommonNeonSISDBuiltinExpr()
7637 if (Ops[j]->getType()->getPrimitiveSizeInBits() == in EmitCommonNeonSISDBuiltinExpr()
7641 assert(ArgTy->isVectorTy() && !Ops[j]->getType()->isVectorTy()); in EmitCommonNeonSISDBuiltinExpr()
7644 Ops[j] = CGF.Builder.CreateTruncOrBitCast( in EmitCommonNeonSISDBuiltinExpr()
[all …]
H A DCGExprScalar.cpp739 Value *EmitMul(const BinOpInfo &Ops) { in EmitMul() argument
740 if (Ops.Ty->isSignedIntegerOrEnumerationType()) { in EmitMul()
744 return Builder.CreateMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul()
748 return Builder.CreateNSWMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul()
751 if (CanElideOverflowCheck(CGF.getContext(), Ops)) in EmitMul()
752 return Builder.CreateNSWMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul()
753 return EmitOverflowCheckedBinOp(Ops); in EmitMul()
757 if (Ops.Ty->isConstantMatrixType()) { in EmitMul()
761 auto *BO = cast<BinaryOperator>(Ops.E); in EmitMul()
766 CodeGenFunction::CGFPOptionsRAII FPOptsRAII(CGF, Ops.FPFeatures); in EmitMul()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMUnwindOpAsm.h27 SmallVector<uint8_t, 32> Ops;
38 Ops.clear(); in Reset()
63 Ops.insert(Ops.end(), Opcodes.begin(), Opcodes.end()); in EmitRaw()
73 Ops.push_back(Opcode & 0xff); in EmitInt8()
78 Ops.push_back((Opcode >> 8) & 0xff); in EmitInt16()
79 Ops.push_back(Opcode & 0xff); in EmitInt16()
84 Ops.insert(Ops.end(), Opcode, Opcode + Size); in emitBytes()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelDAGToDAG.cpp236 void AddMVEPredicateToOps(SDValueVector &Ops, SDLoc Loc,
239 void AddMVEPredicateToOps(SDValueVector &Ops, SDLoc Loc,
243 void AddEmptyMVEPredicateToOps(SDValueVector &Ops, SDLoc Loc);
245 void AddEmptyMVEPredicateToOps(SDValueVector &Ops, SDLoc Loc, EVT InactiveTy);
1651 SDValue Ops[]= { Base, AMOpc, getAL(CurDAG, SDLoc(N)), in tryARMIndexedLoad() local
1654 MVT::Other, Ops); in tryARMIndexedLoad()
1661 SDValue Ops[]= { Base, Offset, AMOpc, getAL(CurDAG, SDLoc(N)), in tryARMIndexedLoad() local
1664 MVT::Other, Ops); in tryARMIndexedLoad()
1692 SDValue Ops[]= { Base, getAL(CurDAG, SDLoc(N)), in tryT1IndexedLoad() local
1695 MVT::i32, MVT::Other, Ops); in tryT1IndexedLoad()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/FuzzMutate/
H A DOperations.h25 void describeFuzzerIntOps(std::vector<fuzzerop::OpDescriptor> &Ops);
26 void describeFuzzerFloatOps(std::vector<fuzzerop::OpDescriptor> &Ops);
27 void describeFuzzerControlFlowOps(std::vector<fuzzerop::OpDescriptor> &Ops);
28 void describeFuzzerPointerOps(std::vector<fuzzerop::OpDescriptor> &Ops);
29 void describeFuzzerAggregateOps(std::vector<fuzzerop::OpDescriptor> &Ops);
30 void describeFuzzerVectorOps(std::vector<fuzzerop::OpDescriptor> &Ops);
31 void describeFuzzerUnaryOperations(std::vector<fuzzerop::OpDescriptor> &Ops);
32 void describeFuzzerOtherOps(std::vector<fuzzerop::OpDescriptor> &Ops);
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelDAGToDAG.cpp178 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local
181 MVT::i32, Ops)); in Select()
185 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local
188 MVT::i32, Ops)); in Select()
192 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local
195 MVT::i32, Ops)); in Select()
199 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local
202 MVT::i32, Ops)); in Select()
206 SDValue Ops[] = { N->getOperand(0), N->getOperand(1), in Select() local
209 MVT::i32, Ops)); in Select()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/Utils/
H A DAArch64BaseInfo.cpp154 SmallVector<StringRef, 5> Ops; in parseGenericRegister() local
155 if (!GenericRegPattern.match(UpperName, &Ops)) in parseGenericRegister()
160 Ops[1].getAsInteger(10, Op0); in parseGenericRegister()
161 Ops[2].getAsInteger(10, Op1); in parseGenericRegister()
162 Ops[3].getAsInteger(10, CRn); in parseGenericRegister()
163 Ops[4].getAsInteger(10, CRm); in parseGenericRegister()
164 Ops[5].getAsInteger(10, Op2); in parseGenericRegister()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp800 static void GroupByComplexity(SmallVectorImpl<const SCEV *> &Ops, in GroupByComplexity() argument
802 if (Ops.size() < 2) return; // Noop in GroupByComplexity()
813 if (Ops.size() == 2) { in GroupByComplexity()
816 const SCEV *&LHS = Ops[0], *&RHS = Ops[1]; in GroupByComplexity()
823 llvm::stable_sort(Ops, [&](const SCEV *LHS, const SCEV *RHS) { in GroupByComplexity()
831 for (unsigned i = 0, e = Ops.size(); i != e-2; ++i) { in GroupByComplexity()
832 const SCEV *S = Ops[i]; in GroupByComplexity()
837 for (unsigned j = i+1; j != e && Ops[j]->getSCEVType() == Complexity; ++j) { in GroupByComplexity()
838 if (Ops[j] == S) { // Found a duplicate. in GroupByComplexity()
840 std::swap(Ops[i+1], Ops[j]); in GroupByComplexity()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DStatepointLowering.cpp79 static void pushStackMapConstant(SmallVectorImpl<SDValue>& Ops, in pushStackMapConstant() argument
82 Ops.push_back(Builder.DAG.getTargetConstant(StackMaps::ConstantOp, L, in pushStackMapConstant()
84 Ops.push_back(Builder.DAG.getTargetConstant(Value, L, MVT::i64)); in pushStackMapConstant()
426 SmallVectorImpl<SDValue> &Ops, in lowerIncomingStatepointValue() argument
437 Ops.push_back(Builder.DAG.getTargetFrameIndex(FI->getIndex(), in lowerIncomingStatepointValue()
453 pushStackMapConstant(Ops, Builder, 0xFEFEFEFE); in lowerIncomingStatepointValue()
462 pushStackMapConstant(Ops, Builder, C->getSExtValue()); in lowerIncomingStatepointValue()
465 pushStackMapConstant(Ops, Builder, in lowerIncomingStatepointValue()
483 Ops.push_back(Incoming); in lowerIncomingStatepointValue()
492 Ops.push_back(std::get<0>(Res)); in lowerIncomingStatepointValue()
[all …]
H A DSelectionDAG.cpp694 ArrayRef<SDValue> Ops) { in AddNodeIDOperands() argument
695 for (const auto &Op : Ops) { in AddNodeIDOperands()
703 ArrayRef<SDUse> Ops) { in AddNodeIDOperands() argument
704 for (const auto &Op : Ops) { in AddNodeIDOperands()
1268 SDValue Ops[] = { Op }; in FindModifiedNodeSlot() local
1270 AddNodeIDNode(ID, N->getOpcode(), N->getVTList(), Ops); in FindModifiedNodeSlot()
1288 SDValue Ops[] = { Op1, Op2 }; in FindModifiedNodeSlot() local
1290 AddNodeIDNode(ID, N->getOpcode(), N->getVTList(), Ops); in FindModifiedNodeSlot()
1302 SDNode *SelectionDAG::FindModifiedNodeSlot(SDNode *N, ArrayRef<SDValue> Ops, in FindModifiedNodeSlot() argument
1308 AddNodeIDNode(ID, N->getOpcode(), N->getVTList(), Ops); in FindModifiedNodeSlot()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp351 Value *Ops[3]; in LowerIntrinsicCall() local
352 Ops[0] = CI->getArgOperand(0); in LowerIntrinsicCall()
353 Ops[1] = CI->getArgOperand(1); in LowerIntrinsicCall()
354 Ops[2] = Size; in LowerIntrinsicCall()
355 ReplaceCallWith("memcpy", CI, Ops, Ops+3, CI->getArgOperand(0)->getType()); in LowerIntrinsicCall()
362 Value *Ops[3]; in LowerIntrinsicCall() local
363 Ops[0] = CI->getArgOperand(0); in LowerIntrinsicCall()
364 Ops[1] = CI->getArgOperand(1); in LowerIntrinsicCall()
365 Ops[2] = Size; in LowerIntrinsicCall()
366 ReplaceCallWith("memmove", CI, Ops, Ops+3, CI->getArgOperand(0)->getType()); in LowerIntrinsicCall()
[all …]
H A DCodeGenCommonISel.cpp219 SmallVectorImpl<uint64_t> &Ops) { in getSalvageOpsForTrunc() argument
232 Ops.append(ExtOps.begin(), ExtOps.end()); in getSalvageOpsForTrunc()
238 SmallVectorImpl<uint64_t> &Ops) { in salvageDebugInfoImpl() argument
241 return getSalvageOpsForTrunc(MRI, MI, Ops); in salvageDebugInfoImpl()
277 SmallVector<uint64_t, 16> Ops; in salvageDebugInfoForDbgValue() local
278 auto Op0 = salvageDebugInfoImpl(MRI, MI, Ops); in salvageDebugInfoForDbgValue()
281 SalvagedExpr = DIExpression::appendOpsToArg(SalvagedExpr, Ops, 0, true); in salvageDebugInfoForDbgValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp305 SmallVector<Value *, 4> Ops(NumSplits); in trySADReplacement() local
311 Ops[i] = Builder.CreateCall(PSADBWFn, {ExtractOp0, ExtractOp1}); in trySADReplacement()
312 Ops[i] = Builder.CreateBitCast(Ops[i], I32Ty); in trySADReplacement()
319 cast<FixedVectorType>(Ops[0]->getType())->getNumElements() * 2; in trySADReplacement()
323 Ops[i] = Builder.CreateShuffleVector(Ops[i*2], Ops[i*2+1], ConcatMask); in trySADReplacement()
332 Ops[0] = Builder.CreateShuffleVector(Ops[0], Ops[0], ArrayRef<int>{0, 1}); in trySADReplacement()
336 cast<FixedVectorType>(Ops[0]->getType())->getNumElements(); in trySADReplacement()
342 Value *Zero = Constant::getNullValue(Ops[0]->getType()); in trySADReplacement()
343 Ops[0] = Builder.CreateShuffleVector(Ops[0], Zero, ConcatMask); in trySADReplacement()
346 Op->replaceAllUsesWith(Ops[0]); in trySADReplacement()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineNegator.cpp117 std::array<Value *, 2> Ops{I->getOperand(0), I->getOperand(1)}; in getSortedOperandsOfBinOp() local
120 std::swap(Ops[0], Ops[1]); in getSortedOperandsOfBinOp()
121 return Ops; in getSortedOperandsOfBinOp()
169 std::array<Value *, 2> Ops = getSortedOperandsOfBinOp(I); in visitImpl() local
171 if (match(Ops[1], m_One())) in visitImpl()
172 return Builder.CreateNot(Ops[0], I->getName() + ".neg"); in visitImpl()
421 std::array<Value *, 2> Ops = getSortedOperandsOfBinOp(I); in visitImpl() local
424 if (match(Ops[1], m_One())) in visitImpl()
425 return Builder.CreateNot(Ops[0], I->getName() + ".neg"); in visitImpl()
459 std::array<Value *, 2> Ops = getSortedOperandsOfBinOp(I); in visitImpl() local
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DDXILEmitter.cpp285 static void emitDXILEnums(std::vector<DXILOperationDesc> &Ops, in emitDXILEnums() argument
288 llvm::sort(Ops, [](DXILOperationDesc &A, DXILOperationDesc &B) { in emitDXILEnums()
295 for (auto &Op : Ops) { in emitDXILEnums()
306 for (auto &Op : Ops) { in emitDXILEnums()
318 static void emitDXILIntrinsicMap(std::vector<DXILOperationDesc> &Ops, in emitDXILIntrinsicMap() argument
324 for (auto &Op : Ops) { in emitDXILIntrinsicMap()
356 static void emitDXILOperationTable(std::vector<DXILOperationDesc> &Ops, in emitDXILOperationTable() argument
359 llvm::sort(Ops, [](DXILOperationDesc &A, DXILOperationDesc &B) { in emitDXILOperationTable()
370 for (auto &Op : Ops) { in emitDXILOperationTable()
400 for (auto &Op : Ops) { in emitDXILOperationTable()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInlineAsmLowering.cpp25 Value *Val, StringRef Constraint, std::vector<MachineOperand> &Ops, in lowerAsmOperandForConstraint() argument
31 Ops.push_back(MachineOperand::CreateFPImm(CFP)); in lowerAsmOperandForConstraint()
38 Ops.push_back(MachineOperand::CreateFPImm(CFP)); in lowerAsmOperandForConstraint()
44 ValOp, Constraint, Ops, MIRBuilder) in lowerAsmOperandForConstraint()

12345678910>>...12