Home
last modified time | relevance | path

Searched refs:Arg1 (Results 1 – 25 of 44) sorted by relevance

12

/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerTracePC.cpp383 void TracePC::HandleCmp(uintptr_t PC, T Arg1, T Arg2) { in HandleCmp() argument
384 uint64_t ArgXor = Arg1 ^ Arg2; in HandleCmp()
386 TORC4.Insert(ArgXor, Arg1, Arg2); in HandleCmp()
388 TORC8.Insert(ArgXor, Arg1, Arg2); in HandleCmp()
390 uint64_t AbsoluteDistance = (Arg1 == Arg2 ? 0 : Clzll(Arg1 - Arg2) + 1); in HandleCmp()
484 void __sanitizer_cov_trace_cmp8(uint64_t Arg1, uint64_t Arg2) { in __sanitizer_cov_trace_cmp8() argument
486 fuzzer::TPC.HandleCmp(PC, Arg1, Arg2); in __sanitizer_cov_trace_cmp8()
495 void __sanitizer_cov_trace_const_cmp8(uint64_t Arg1, uint64_t Arg2) { in __sanitizer_cov_trace_const_cmp8() argument
497 fuzzer::TPC.HandleCmp(PC, Arg1, Arg2); in __sanitizer_cov_trace_const_cmp8()
503 void __sanitizer_cov_trace_cmp4(uint32_t Arg1, uint32_t Arg2) { in __sanitizer_cov_trace_cmp4() argument
[all …]
H A DFuzzerMutate.cpp212 const void *Arg1, const void *Arg2, in MakeDictionaryEntryFromCMP() argument
221 ExistingBytes = HandleFirst ? Arg1 : Arg2; in MakeDictionaryEntryFromCMP()
245 T Arg1, T Arg2, const uint8_t *Data, size_t Size) { in MakeDictionaryEntryFromCMP() argument
246 if (Rand.RandBool()) Arg1 = Bswap(Arg1); in MakeDictionaryEntryFromCMP()
248 T Arg1Mutation = static_cast<T>(Arg1 + Rand(-1, 1)); in MakeDictionaryEntryFromCMP()
250 return MakeDictionaryEntryFromCMP(&Arg1, &Arg2, &Arg1Mutation, &Arg2Mutation, in MakeDictionaryEntryFromCMP()
251 sizeof(Arg1), Data, Size); in MakeDictionaryEntryFromCMP()
255 const Word &Arg1, const Word &Arg2, const uint8_t *Data, size_t Size) { in MakeDictionaryEntryFromCMP() argument
256 return MakeDictionaryEntryFromCMP(Arg1.data(), Arg2.data(), Arg1.data(), in MakeDictionaryEntryFromCMP()
257 Arg2.data(), Arg1.size(), Data, Size); in MakeDictionaryEntryFromCMP()
H A DFuzzerMutate.h117 DictionaryEntry MakeDictionaryEntryFromCMP(T Arg1, T Arg2,
119 DictionaryEntry MakeDictionaryEntryFromCMP(const Word &Arg1, const Word &Arg2,
121 DictionaryEntry MakeDictionaryEntryFromCMP(const void *Arg1, const void *Arg2,
H A DFuzzerTracePC.h37 void Insert(size_t Idx, const T &Arg1, const T &Arg2) { in Insert()
39 Table[Idx].A = Arg1; in Insert()
75 template <class T> void HandleCmp(uintptr_t PC, T Arg1, T Arg2);
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_basic_logging.h34 uint64_t Arg1);
36 uint64_t Arg1);
H A Dxray_basic_logging.cpp255 void InMemoryRawLogWithArg(int32_t FuncId, XRayEntryType Type, uint64_t Arg1, in InMemoryRawLogWithArg() argument
289 R.Arg = Arg1; in InMemoryRawLogWithArg()
320 uint64_t Arg1) XRAY_NEVER_INSTRUMENT { in basicLoggingHandleArg1RealTSC() argument
321 InMemoryRawLogWithArg(FuncId, Type, Arg1, readTSC); in basicLoggingHandleArg1RealTSC()
325 uint64_t Arg1) XRAY_NEVER_INSTRUMENT { in basicLoggingHandleArg1EmulateTSC() argument
327 FuncId, Type, Arg1, [](uint8_t &CPU) XRAY_NEVER_INSTRUMENT { in basicLoggingHandleArg1EmulateTSC()
H A Dxray_fdr_logging.h32 void fdrLoggingHandleArg1(int32_t FuncId, XRayEntryType Entry, uint64_t Arg1);
/freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/
H A Dsimple_packed_serialization_test.cpp163 bool Arg1 = true; in TEST()
167 size_t Size = BAL::size(Arg1, Arg2, Arg3);
171 EXPECT_TRUE(BAL::serialize(OB, Arg1, Arg2, Arg3)); in TEST()
181 EXPECT_EQ(Arg1, ArgOut1); in TEST()
176 bool Arg1 = true; TEST() local
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp442 Value *Arg1 = II.getArgOperand(1); in simplifyX86pack() local
446 if (isa<UndefValue>(Arg0) && isa<UndefValue>(Arg1)) in simplifyX86pack()
462 if (!isa<Constant>(Arg0) || !isa<Constant>(Arg1)) in simplifyX86pack()
487 Arg1 = Builder.CreateSelect(Builder.CreateICmpSLT(Arg1, MinC), MinC, Arg1); in simplifyX86pack()
489 Arg1 = Builder.CreateSelect(Builder.CreateICmpSGT(Arg1, MaxC), MaxC, Arg1); in simplifyX86pack()
499 auto *Shuffle = Builder.CreateShuffleVector(Arg0, Arg1, PackMask); in simplifyX86pack()
509 Value *Arg1 = II.getArgOperand(1); in simplifyX86pmulh() local
517 if (isa<UndefValue>(Arg0) || isa<UndefValue>(Arg1)) in simplifyX86pmulh()
521 if (isa<ConstantAggregateZero>(Arg0) || isa<ConstantAggregateZero>(Arg1)) in simplifyX86pmulh()
527 return IsSigned ? Builder.CreateAShr(Arg1, 15) in simplifyX86pmulh()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DStripSymbols.cpp153 Value *Arg1 = CI->getArgOperand(0); in stripDebugDeclareImpl()
157 if (Arg1->use_empty()) { in stripDebugDeclareImpl()
158 if (Constant *C = dyn_cast<Constant>(Arg1)) in stripDebugDeclareImpl()
161 RecursivelyDeleteTriviallyDeadInstructions(Arg1); in stripDebugDeclareImpl()
147 Value *Arg1 = CI->getArgOperand(0); stripDebugDeclareImpl() local
H A DArgumentPromotion.cpp188 unsigned Arg1 = NewArgIndices[AllocSize->first]; in doPromotion() local
189 assert(Arg1 != (unsigned)-1 && "allocsize cannot be promoted argument"); in doPromotion()
195 NF->addFnAttr(Attribute::getWithAllocSizeArgs(F->getContext(), Arg1, Arg2)); in doPromotion()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dfunctional26 template <class Arg1, class Arg2, class Result>
29 typedef Arg1 first_argument_type;
305 template <class Arg1, class Arg2, class Result> // deprecated in C+…
306 class pointer_to_binary_function : public binary_function<Arg1, Arg2, Result>
309 explicit pointer_to_binary_function(Result (*f)(Arg1, Arg2));
310 Result operator()(Arg1 x, Arg2 y) const;
313 template <class Arg1, class Arg2, class Result>
314 pointer_to_binary_function<Arg1,Arg2,Result> ptr_fun(Result (*f)(Arg1,Arg2)); // deprecated in C+…
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUMCExpr.cpp86 static int64_t op(AMDGPUMCExpr::VariantKind Kind, int64_t Arg1, int64_t Arg2) { in op() argument
91 return std::max(Arg1, Arg2); in op()
93 return Arg1 | Arg2; in op()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTStructuralEquivalence.cpp105 const TemplateArgument &Arg1,
108 const TemplateArgumentLoc &Arg1,
659 const TemplateArgument &Arg1, in IsStructurallyEquivalent() argument
661 if (Arg1.getKind() != Arg2.getKind()) in IsStructurallyEquivalent()
664 switch (Arg1.getKind()) { in IsStructurallyEquivalent()
669 return IsStructurallyEquivalent(Context, Arg1.getAsType(), Arg2.getAsType()); in IsStructurallyEquivalent()
672 if (!IsStructurallyEquivalent(Context, Arg1.getIntegralType(), in IsStructurallyEquivalent()
676 return llvm::APSInt::isSameValue(Arg1.getAsIntegral(), in IsStructurallyEquivalent()
680 return IsStructurallyEquivalent(Context, Arg1.getAsDecl(), Arg2.getAsDecl()); in IsStructurallyEquivalent()
686 return IsStructurallyEquivalent(Context, Arg1.getAsTemplate(), in IsStructurallyEquivalent()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp568 const Expr *Arg1 = S->getArg(1); in VisitCXXOperatorCallExpr() local
569 assert(Arg1 != nullptr); in VisitCXXOperatorCallExpr()
581 if (Arg1->isPRValue()) { in VisitCXXOperatorCallExpr()
582 LocSrc = &Env.getResultObjectLocation(*Arg1); in VisitCXXOperatorCallExpr()
584 LocSrc = Env.get<RecordStorageLocation>(*Arg1); in VisitCXXOperatorCallExpr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp803 Value *Arg0 = Call.getArgOperand(0), *Arg1 = Call.getArgOperand(1); in canonicalizeConstantArg0ToArg1() local
804 if (isa<Constant>(Arg0) && !isa<Constant>(Arg1)) { in canonicalizeConstantArg0ToArg1()
805 Call.setArgOperand(0, Arg1); in canonicalizeConstantArg0ToArg1()
2169 Value *Arg1 = II->getArgOperand(1); in visitCallInst() local
2174 if (HasNWAdd && match(Arg1, m_APInt(C1))) { in visitCallInst()
2181 IID, X, ConstantInt::get(Arg1->getType(), NewC))); in visitCallInst()
2199 Value *Arg1 = II->getArgOperand(1); in visitCallInst() local
2204 if (match(Arg1, m_Constant(C)) && C->isNotMinSignedValue()) { in visitCallInst()
2223 Value *Arg1 = SI->getRHS(); in visitCallInst() local
2227 Arg0, Arg1, SI); in visitCallInst()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h1384 template <typename T, typename Arg1, typename Arg2>
1385 T *create(Arg1 A1, Arg2 A2, ProgramStateRef St, const LocationContext *LCtx, in create()
1392 template <typename T, typename Arg1, typename Arg2, typename Arg3>
1393 T *create(Arg1 A1, Arg2 A2, Arg3 A3, ProgramStateRef St, in create()
1400 template <typename T, typename Arg1, typename Arg2, typename Arg3,
1402 T *create(Arg1 A1, Arg2 A2, Arg3 A3, Arg4 A4, ProgramStateRef St, in create()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp162 static CallInst *CreateCallEx2(IRB &B, FunctionCallee Callee, Value *Arg1, in CreateCallEx2() argument
164 CallInst *R = B.CreateCall(Callee, {Arg1, Arg2}, Name); in CreateCallEx2()
749 Value *Arg1 = CI->getArgOperand(1); in fold() local
751 VecTy && !isa<VectorType>(Arg1->getType())) { in fold()
752 Value *SplatArg1 = B.CreateVectorSplat(VecTy->getElementCount(), Arg1); in fold()
1289 Value *Arg1 = CI->getArgOperand(1); in replaceLibCallWithSimpleIntrinsic() local
1291 VectorType *Arg1VecTy = dyn_cast<VectorType>(Arg1->getType()); in replaceLibCallWithSimpleIntrinsic()
1293 Value *SplatRHS = B.CreateVectorSplat(Arg0VecTy->getElementCount(), Arg1); in replaceLibCallWithSimpleIntrinsic()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaARM.cpp33 Expr *Arg1 = TheCall->getArg(1); in BuiltinARMMemoryTaggingCall() local
44 ExprResult SecArg = SemaRef.DefaultLvalueConversion(Arg1); in BuiltinARMMemoryTaggingCall()
50 << "second" << SecArgType << Arg1->getSourceRange(); in BuiltinARMMemoryTaggingCall()
82 Expr *Arg1 = TheCall->getArg(1); in BuiltinARMMemoryTaggingCall() local
92 QualType SecArgType = Arg1->getType(); in BuiltinARMMemoryTaggingCall()
95 << "second" << SecArgType << Arg1->getSourceRange(); in BuiltinARMMemoryTaggingCall()
H A DSemaOpenCL.cpp250 Expr *Arg1 = TheCall->getArg(1); in checkBuiltinEnqueueKernel() local
263 if (!Arg1->getType()->isIntegerType()) { in checkBuiltinEnqueueKernel()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAutoUpgrade.cpp2260 Value *Arg1 = CI->getArgOperand(1); in upgradeX86IntrinsicCall() local
2264 Type *SrcEltTy = cast<VectorType>(Arg1->getType())->getElementType(); in upgradeX86IntrinsicCall()
2268 Builder.CreateExtractElement(Arg1, (uint64_t)0, "extractelement"); in upgradeX86IntrinsicCall()
2280 Value *Arg1 = CI->getArgOperand(1); in upgradeX86IntrinsicCall() local
2284 Arg0, PointerType::getUnqual(Arg1->getType()), "cast"); in upgradeX86IntrinsicCall()
2286 Arg1, BC, in upgradeX86IntrinsicCall()
2287 Align(Arg1->getType()->getPrimitiveSizeInBits().getFixedValue() / 8)); in upgradeX86IntrinsicCall()
2291 Value *Arg1 = CI->getArgOperand(1); in upgradeX86IntrinsicCall() local
2294 Value *BC0 = Builder.CreateBitCast(Arg1, NewVecTy, "cast"); in upgradeX86IntrinsicCall()
2303 Value *Arg1 = CI->getArgOperand(1); in upgradeX86IntrinsicCall() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFCheckAndAdjustIR.cpp160 Value *Arg1 = Call->getArgOperand(1); in removeCompareBuiltin() local
166 auto *ICmp = new ICmpInst(Opcode, Arg1, Arg2); in removeCompareBuiltin()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DStringExtras.h454 template <typename Sep, typename Arg1, typename... Args>
455 inline void join_items_impl(std::string &Result, Sep Separator, const Arg1 &A1, in join_items_impl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DAMDGPUEmitPrintf.cpp62 Value *Arg0, Value *Arg1, Value *Arg2, Value *Arg3, in callAppendArgs() argument
73 return Builder.CreateCall(Fn, {Desc, NumArgsValue, Arg0, Arg1, Arg2, Arg3, in callAppendArgs()
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DNeonEmitter.cpp1635 std::pair<Type, std::string> Arg1 = in emitDagShuffle() local
1639 assert_with_loc(Arg1.first == Arg2.first, in emitDagShuffle()
1647 std::make_unique<Rev>(Arg1.first.getElementSizeInBits())); in emitDagShuffle()
1649 std::make_unique<MaskExpander>(Arg1.first.getNumElements())); in emitDagShuffle()
1652 std::string S = "__builtin_shufflevector(" + Arg1.second + ", " + Arg2.second; in emitDagShuffle()
1662 Type T(Arg1.first); in emitDagShuffle()

12