/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | TargetLibraryInfo.cpp | 635 bool TargetLibraryInfoImpl::isValidProtoForLibFunc(const FunctionType &FTy, in isValidProtoForLibFunc() argument 638 LLVMContext &Ctx = FTy.getContext(); in isValidProtoForLibFunc() 644 unsigned NumParams = FTy.getNumParams(); in isValidProtoForLibFunc() 650 return (NumParams >= 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc() 651 FTy.getParamType(1)->isPointerTy() && in isValidProtoForLibFunc() 652 FTy.getReturnType()->isIntegerTy(32)); in isValidProtoForLibFunc() 655 return (NumParams == 2 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc() 656 FTy.getParamType(1)->isPointerTy() && in isValidProtoForLibFunc() 657 FTy.getReturnType()->isIntegerTy(32)); in isValidProtoForLibFunc() 661 return (NumParams == 3 && FTy.getParamType(0)->isPointerTy() && in isValidProtoForLibFunc() [all …]
|
D | MemoryBuiltins.cpp | 158 FunctionType *FTy = Callee->getFunctionType(); in getAllocationDataForFunction() local 160 if (FTy->getReturnType() == Type::getInt8PtrTy(FTy->getContext()) && in getAllocationDataForFunction() 161 FTy->getNumParams() == FnData->NumParams && in getAllocationDataForFunction() 163 (FTy->getParamType(FstParam)->isIntegerTy(32) || in getAllocationDataForFunction() 164 FTy->getParamType(FstParam)->isIntegerTy(64))) && in getAllocationDataForFunction() 166 FTy->getParamType(SndParam)->isIntegerTy(32) || in getAllocationDataForFunction() 167 FTy->getParamType(SndParam)->isIntegerTy(64))) in getAllocationDataForFunction() 450 FunctionType *FTy = F->getFunctionType(); in isLibFreeFunction() local 451 if (!FTy->getReturnType()->isVoidTy()) in isLibFreeFunction() 453 if (FTy->getNumParams() != ExpectedNumParams) in isLibFreeFunction() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/ |
D | OrcMCJITReplacement.cpp | 32 FunctionType *FTy = F->getFunctionType(); in runFunction() local 33 Type *RetTy = FTy->getReturnType(); in runFunction() 35 assert((FTy->getNumParams() == ArgValues.size() || in runFunction() 36 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && in runFunction() 38 assert(FTy->getNumParams() == ArgValues.size() && in runFunction() 46 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction() 47 FTy->getParamType(1)->isPointerTy() && in runFunction() 48 FTy->getParamType(2)->isPointerTy()) { in runFunction() 61 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction() 62 FTy->getParamType(1)->isPointerTy()) { in runFunction() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | InlineAsm.cpp | 30 InlineAsm::InlineAsm(FunctionType *FTy, const std::string &asmString, in InlineAsm() argument 33 : Value(PointerType::getUnqual(FTy), Value::InlineAsmVal), in InlineAsm() 34 AsmString(asmString), Constraints(constraints), FTy(FTy), in InlineAsm() 42 InlineAsm *InlineAsm::get(FunctionType *FTy, StringRef AsmString, in get() argument 45 InlineAsmKeyType Key(AsmString, Constraints, FTy, hasSideEffects, in get() 47 LLVMContextImpl *pImpl = FTy->getContext().pImpl; in get() 48 return pImpl->InlineAsms.getOrCreate(PointerType::getUnqual(FTy), Key); in get() 57 return FTy; in getFunctionType()
|
D | ConstantsContext.h | 415 FunctionType *FTy; 421 FunctionType *FTy, bool HasSideEffects, bool IsAlignStack, 423 : AsmString(AsmString), Constraints(Constraints), FTy(FTy), 429 FTy(Asm->getFunctionType()), HasSideEffects(Asm->hasSideEffects()), 436 FTy == X.FTy; 445 FTy == Asm->getFunctionType(); 450 AsmDialect, FTy); 456 assert(PointerType::getUnqual(FTy) == Ty); 457 return new InlineAsm(FTy, AsmString, Constraints, HasSideEffects,
|
D | Instructions.cpp | 385 void CallInst::init(FunctionType *FTy, Value *Func, ArrayRef<Value *> Args, in init() argument 387 this->FTy = FTy; in init() 393 assert((Args.size() == FTy->getNumParams() || in init() 394 (FTy->isVarArg() && Args.size() > FTy->getNumParams())) && in init() 398 assert((i >= FTy->getNumParams() || in init() 399 FTy->getParamType(i) == Args[i]->getType()) && in init() 412 void CallInst::init(FunctionType *FTy, Value *Func, const Twine &NameStr) { in init() argument 413 this->FTy = FTy; in init() 417 assert(FTy->getNumParams() == 0 && "Calling a function with bad signature"); in init() 437 : CallBase(CI.Attrs, CI.FTy, CI.getType(), Instruction::Call, in CallInst() [all …]
|
D | AsmWriter.cpp | 578 FunctionType *FTy = cast<FunctionType>(Ty); in print() local 579 print(FTy->getReturnType(), OS); in print() 581 for (FunctionType::param_iterator I = FTy->param_begin(), in print() 582 E = FTy->param_end(); I != E; ++I) { in print() 583 if (I != FTy->param_begin()) in print() 587 if (FTy->isVarArg()) { in print() 588 if (FTy->getNumParams()) OS << ", "; in print() 3856 FunctionType *FTy = CI->getFunctionType(); in printInstruction() local 3857 Type *RetTy = FTy->getReturnType(); in printInstruction() 3871 TypePrinter.print(FTy->isVarArg() ? FTy : RetTy, Out); in printInstruction() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/MCJIT/ |
D | MCJIT.cpp | 513 FunctionType *FTy = F->getFunctionType(); in runFunction() local 514 Type *RetTy = FTy->getReturnType(); in runFunction() 516 assert((FTy->getNumParams() == ArgValues.size() || in runFunction() 517 (FTy->isVarArg() && FTy->getNumParams() <= ArgValues.size())) && in runFunction() 519 assert(FTy->getNumParams() == ArgValues.size() && in runFunction() 527 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction() 528 FTy->getParamType(1)->isPointerTy() && in runFunction() 529 FTy->getParamType(2)->isPointerTy()) { in runFunction() 542 if (FTy->getParamType(0)->isIntegerTy(32) && in runFunction() 543 FTy->getParamType(1)->isPointerTy()) { in runFunction() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | GCOVProfiling.cpp | 658 FunctionType *FTy = FunctionType::get(Builder.getVoidTy(), {}, false); in AddFlushBeforeForkAndExec() local 659 FunctionCallee GCOVFlush = M->getOrInsertFunction("__gcov_flush", FTy); in AddFlushBeforeForkAndExec() 858 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitProfileArcs() local 859 Function *F = Function::Create(FTy, GlobalValue::InternalLinkage, in emitProfileArcs() 870 FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); in emitProfileArcs() 872 PointerType::get(FTy, 0), in emitProfileArcs() 873 PointerType::get(FTy, 0) in emitProfileArcs() 875 FTy = FunctionType::get(Builder.getVoidTy(), Params, false); in emitProfileArcs() 879 FunctionCallee GCOVInit = M->getOrInsertFunction("llvm_gcov_init", FTy); in emitProfileArcs() 895 FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), Args, false); in getStartFileFunc() local [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 331 static std::string getSignature(FunctionType *FTy) { in getSignature() argument 334 OS << *FTy->getReturnType(); in getSignature() 335 for (Type *ParamTy : FTy->params()) in getSignature() 337 if (FTy->isVarArg()) in getSignature() 359 FunctionType *FTy = FunctionType::get(Int8PtrTy, Args, false); in getFindMatchingCatch() local 361 FTy, GlobalValue::ExternalLinkage, in getFindMatchingCatch() 468 FunctionType *FTy = FunctionType::get(CalleeFTy->getReturnType(), ArgTys, in getInvokeWrapper() local 471 Function::Create(FTy, GlobalValue::ExternalLinkage, "__invoke_" + Sig, M); in getInvokeWrapper() 694 FunctionType *FTy = in runOnModule() local 697 Function::Create(FTy, GlobalValue::ExternalLinkage, "saveSetjmp", &M); in runOnModule() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/ |
D | CoroInternal.h | 175 auto FTy = CoroBegin->getFunction()->getFunctionType(); in getRetconResultTypes() local 178 if (auto STy = dyn_cast<StructType>(FTy->getReturnType())) { in getRetconResultTypes() 190 auto FTy = RetconLowering.ResumePrototype->getFunctionType(); in getRetconResumeTypes() local 191 return FTy->params().slice(1); in getRetconResumeTypes()
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/ |
D | io.hpp | 144 template <typename FTy, typename CTy, typename CTr> 145 FTy const& get_facet(std::basic_ios<CTy,CTr>&); 146 template <typename FTy, typename CTy, typename CTr> 148 template <typename FTy, typename CTy, typename CTr>
|
D | io.inl | 96 template <typename FTy, typename CTy, typename CTr> 97 GLM_FUNC_QUALIFIER FTy const& get_facet(std::basic_ios<CTy, CTr>& ios) 99 if(!std::has_facet<FTy>(ios.getloc())) 100 ios.imbue(std::locale(ios.getloc(), new FTy)); 102 return std::use_facet<FTy>(ios.getloc());
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | DeadArgumentElimination.cpp | 159 FunctionType *FTy = Fn.getFunctionType(); in DeleteDeadVarargs() local 161 std::vector<Type *> Params(FTy->param_begin(), FTy->param_end()); in DeleteDeadVarargs() 162 FunctionType *NFTy = FunctionType::get(FTy->getReturnType(), in DeleteDeadVarargs() 737 FunctionType *FTy = F->getFunctionType(); in RemoveDeadStuffFromFunction() local 748 SmallVector<bool, 10> ArgAlive(FTy->getNumParams(), false); in RemoveDeadStuffFromFunction() 770 Type *RetTy = FTy->getReturnType(); in RemoveDeadStuffFromFunction() 859 FunctionType *NFTy = FunctionType::get(NRetTy, Params, FTy->isVarArg()); in RemoveDeadStuffFromFunction() 862 if (NFTy == FTy) in RemoveDeadStuffFromFunction() 897 for (unsigned e = FTy->getNumParams(); i != e; ++I, ++i) in RemoveDeadStuffFromFunction()
|
D | ExtractGV.cpp | 135 if (FunctionType *FTy = dyn_cast<FunctionType>(Ty)) { in runOnModule() local 136 Declaration = Function::Create(FTy, GlobalValue::ExternalLinkage, in runOnModule()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | TargetTransformInfoImpl.h | 130 unsigned getCallCost(FunctionType *FTy, int NumArgs, const User *U) { in getCallCost() argument 131 assert(FTy && "FunctionType must be provided to this routine."); in getCallCost() 140 NumArgs = FTy->getNumParams(); in getCallCost() 724 FunctionType *FTy = F->getFunctionType(); in getCallCost() local 725 SmallVector<Type *, 8> ParamTys(FTy->param_begin(), FTy->param_end()); in getCallCost() 727 ->getIntrinsicCost(IID, FTy->getReturnType(), ParamTys, U); in getCallCost() 883 Type *FTy = CS.getCalledValue()->getType()->getPointerElementType(); in getUserCost() local 885 ->getCallCost(cast<FunctionType>(FTy), CS.arg_size(), U); in getUserCost()
|
/third_party/flatbuffers/rust/flexbuffers/src/ |
D | flexbuffer_type.rs | 114 ($is_T: ident, $FTy: ident) => { 117 self == $FTy
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | InjectTLIMappings.cpp | 83 FunctionType *FTy = FunctionType::get(RetTy, Tys, /*isVarArg=*/false); in addVariantDeclaration() local 85 Function::Create(FTy, Function::ExternalLinkage, VFName, M); in addVariantDeclaration()
|
D | Evaluator.cpp | 289 auto *FTy = F->getFunctionType(); in getFormalParams() local 290 if (FTy->getNumParams() > CS.getNumArgOperands()) { in getFormalParams() 296 for (auto ParI = FTy->param_begin(), ParE = FTy->param_end(); ParI != ParE; in getFormalParams()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | InstrTypes.h | 1111 FunctionType *FTy; 1115 : Instruction(std::forward<ArgsTy>(Args)...), Attrs(A), FTy(FT) {} 1149 FunctionType *getFunctionType() const { return FTy; } 1151 void mutateFunctionType(FunctionType *FTy) { 1152 Value::mutateType(FTy->getReturnType()); 1153 this->FTy = FTy; 1352 void setCalledFunction(FunctionType *FTy, Value *Fn) { 1353 this->FTy = FTy; 1354 assert(FTy == cast<FunctionType>( 1358 assert(getType() == FTy->getReturnType());
|
D | Statepoint.h | 158 auto *FTy = cast<FunctionType>( in getActualReturnType() local 160 return FTy->getReturnType(); in getActualReturnType()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | ExternalFunctions.cpp | 194 FunctionType *FTy = F->getFunctionType(); in ffiInvoke() local 210 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke() 222 Type *ArgTy = FTy->getParamType(ArgNo); in ffiInvoke() 227 Type *RetTy = FTy->getReturnType(); in ffiInvoke()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | DwarfEHPrepare.cpp | 211 FunctionType *FTy = FunctionType::get(Type::getVoidTy(Ctx), in InsertUnwindResumeCalls() local 214 RewindFunction = Fn.getParent()->getOrInsertFunction(RewindName, FTy); in InsertUnwindResumeCalls()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 3205 Type *FTy = flattenPointerTypes(FullFTy); in parseFunctionRecord() local 3206 if (!FTy) in parseFunctionRecord() 3208 if (isa<PointerType>(FTy)) in parseFunctionRecord() 3209 std::tie(FullFTy, FTy) = getPointerElementTypes(FullFTy); in parseFunctionRecord() 3211 if (!isa<FunctionType>(FTy)) in parseFunctionRecord() 3222 Function::Create(cast<FunctionType>(FTy), GlobalValue::ExternalLinkage, in parseFunctionRecord() 4479 FunctionType *FTy = nullptr; in parseFunctionBody() local 4486 FTy = cast<FunctionType>(flattenPointerTypes(FullFTy)); in parseFunctionBody() 4496 if (!FTy) { in parseFunctionBody() 4501 FTy = cast<FunctionType>(flattenPointerTypes(FullFTy)); in parseFunctionBody() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Demangle/ |
D | MicrosoftDemangle.cpp | 1830 FunctionSignatureNode *FTy = Arena.alloc<FunctionSignatureNode>(); in demangleFunctionType() local 1833 FTy->Quals = demanglePointerExtQualifiers(MangledName); in demangleFunctionType() 1834 FTy->RefQualifier = demangleFunctionRefQualifier(MangledName); in demangleFunctionType() 1835 FTy->Quals = Qualifiers(FTy->Quals | demangleQualifiers(MangledName).first); in demangleFunctionType() 1839 FTy->CallConvention = demangleCallingConvention(MangledName); in demangleFunctionType() 1845 FTy->ReturnType = demangleType(MangledName, QualifierMangleMode::Result); in demangleFunctionType() 1847 FTy->Params = demangleFunctionParameterList(MangledName, FTy->IsVariadic); in demangleFunctionType() 1849 FTy->IsNoexcept = demangleThrowSpecification(MangledName); in demangleFunctionType() 1851 return FTy; in demangleFunctionType()
|