reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/IR/IRBuilder.h
 2444     assert(FnLaunderInvariantGroup->getReturnType() == Int8PtrTy &&
 2472     assert(FnStripInvariantGroup->getReturnType() == Int8PtrTy &&
lib/Analysis/ConstantFolding.cpp
 2477   Type *Ty = F->getReturnType();
lib/Analysis/InstructionSimplify.cpp
 5005   Type *ReturnType = F->getReturnType();
 5174       return UndefValue::get(F->getReturnType());
lib/AsmParser/LLParser.cpp
 5899   Type *ResType = PFS.getFunction().getReturnType();
lib/CodeGen/SelectionDAG/FastISel.cpp
  793   assert(I->getCalledFunction()->getReturnType()->isVoidTy() &&
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
   95   GetReturnInfo(CC, Fn->getReturnType(), Fn->getAttributes(), Outs, *TLI,
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
 2053       (RetTy == F.getReturnType() || F.getReturnType()->isVoidTy());
 2053       (RetTy == F.getReturnType() || F.getReturnType()->isVoidTy());
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1792                     F->getReturnType()->getPointerTo(
 9590                     F.getReturnType()->getPointerTo(
 9756                     F.getReturnType()->getPointerTo(
lib/ExecutionEngine/Interpreter/Execution.cpp
 2136     popStackAndReturnValueToCaller (F->getReturnType (), Result);
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
  250   if (F.getReturnType()->isVoidTy())
lib/IR/AsmWriter.cpp
 3448   TypePrinter.print(F->getReturnType(), Out);
lib/IR/AutoUpgrade.cpp
  515       FunctionType* fType = FunctionType::get(F->getReturnType(), args, false);
  531       FunctionType* fType = FunctionType::get(F->getReturnType(), Tys, false);
  662       Type *Tys[] = { F->getReturnType(), F->arg_begin()->getType() };
  685       Type *Tys[] = {F->getReturnType(), F->arg_begin()->getType()};
  748                                           {F->getReturnType()});
  775       Type *Tys[2] = { F->getReturnType(), F->arg_begin()->getType() };
lib/IR/Function.cpp
  248   assert(FunctionType::isValidReturnType(getReturnType()) &&
lib/IR/IRBuilder.cpp
   58   return BB->getParent()->getReturnType();
lib/IR/Verifier.cpp
 2148   Assert(F.getReturnType()->isFirstClassType() ||
 2149              F.getReturnType()->isVoidTy() || F.getReturnType()->isStructTy(),
 2149              F.getReturnType()->isVoidTy() || F.getReturnType()->isStructTy(),
 2152   Assert(!F.hasStructRetAttr() || F.getReturnType()->isVoidTy(),
 2181     Assert(F.getReturnType()->isVoidTy(),
 2226     Assert(!F.getReturnType()->isTokenTy(),
 2451   if (F->getReturnType()->isVoidTy())
 2455            &RI, F->getReturnType());
 2457     Assert(N == 1 && F->getReturnType() == RI.getOperand(0)->getType(),
 2460            &RI, F->getReturnType());
 4667     Assert(Call.getType() == Call.getFunction()->getReturnType(),
lib/Target/AArch64/AArch64FastISel.cpp
 3395   cast<StructType>(Callee->getReturnType())->getTypeAtIndex(0U);
 3659     Type *RetTy = II->getCalledFunction()->getReturnType();
 3685     auto *Ty = cast<StructType>(Callee->getReturnType());
 3862     GetReturnInfo(CC, F.getReturnType(), F.getAttributes(), Outs, TLI, DL);
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  616   auto *FTy = FunctionType::get(Callee->getReturnType(),
 1418   Type *RetType = UCallee->getReturnType();
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
  238   Type *RetTy = F.getReturnType();
lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.cpp
  129   if (F.getReturnType()->isVoidTy()) {
  133     PN = PHINode::Create(F.getReturnType(), ReturningBlocks.size(),
  188         Type *RetTy = F.getReturnType();
  232       Type *RetTy = F.getReturnType();
lib/Target/ARM/ARMFastISel.cpp
 2110     GetReturnInfo(CC, F.getReturnType(), F.getAttributes(), Outs, TLI, DL);
lib/Target/ARM/ARMISelLowering.cpp
 9133               F.getReturnType() == LCRTy;
lib/Target/ARM/ARMTargetTransformInfo.cpp
  821     if (F->getReturnType()->isDoubleTy() && !ST->hasFP64())
  823     if (F->getReturnType()->isHalfTy() && !ST->hasFullFP16())
lib/Target/BPF/BPFISelLowering.cpp
  421   if (MF.getFunction().getReturnType()->isAggregateType()) {
lib/Target/Hexagon/HexagonISelLowering.cpp
 1793     Type *ElTy = I.getCalledFunction()->getReturnType()->getStructElementType(0);
lib/Target/Mips/Mips16HardFloat.cpp
  171   Type* RetType = F.getReturnType();
  280   FPReturnVariant RV = whichFPReturnVariant(FStub->getReturnType());
lib/Target/Mips/MipsCCState.cpp
  103         originalTypeIsF128(MF.getFunction().getReturnType(), nullptr));
  105         MF.getFunction().getReturnType()->isFloatingPointTy());
lib/Target/Mips/MipsFastISel.cpp
 1594     Type *RetTy = II->getCalledFunction()->getReturnType();
 1701     GetReturnInfo(CC, F.getReturnType(), F.getAttributes(), Outs, TLI, DL);
lib/Target/Mips/MipsOs16.cpp
   50   Type* RetType = F.getReturnType();
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  336   Type *Ty = F->getReturnType();
lib/Target/NVPTX/NVPTXISelLowering.cpp
 2666   Type *RetTy = MF.getFunction().getReturnType();
lib/Target/NVPTX/NVVMReflect.cpp
   81     assert(F.getReturnType()->isIntegerTy() &&
lib/Target/PowerPC/PPCBoolRetToInt.cpp
  204           if (F.getReturnType()->isIntegerTy(1))
lib/Target/PowerPC/PPCFastISel.cpp
 1703     GetReturnInfo(CC, F.getReturnType(), F.getAttributes(), Outs, TLI, DL);
lib/Target/PowerPC/PPCInstrInfo.cpp
 4041               dyn_cast<IntegerType>(CalleeFn->getReturnType());
lib/Target/RISCV/RISCVISelLowering.cpp
 2454     if (!Func.getReturnType()->isVoidTy())
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
  732   if (!F->getReturnType()->isVoidTy()) {
  734         getLegalType(getSimpleType(F->getReturnType()));
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  662       Type *RetTy = F.getReturnType();
lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
  200   Type *RetTy = F.getReturnType();
lib/Target/X86/X86FastISel.cpp
  250     cast<StructType>(Callee->getReturnType())->getTypeAtIndex(0U);
 1190     GetReturnInfo(CC, F.getReturnType(), F.getAttributes(), Outs, TLI, DL);
 2673     Type *RetTy = II->getCalledFunction()->getReturnType();
 2807     Type *RetTy = II->getCalledFunction()->getReturnType();
 2867     auto *Ty = cast<StructType>(Callee->getReturnType());
 3005     Type *RetTy = II->getCalledFunction()->getReturnType();
lib/Target/X86/X86ISelLowering.cpp
 4317   if (CallerF.getReturnType()->isX86_FP80Ty() && !RetTy->isX86_FP80Ty())
lib/Transforms/Coroutines/CoroSplit.cpp
 1277       auto RetTy = F.getReturnType();
lib/Transforms/IPO/Attributor.cpp
 2963         F.getReturnType()->isVoidTy()) {
 2976     if (F.doesNotThrow() && F.getReturnType()->isVoidTy())
 3197     bool IsVoidTy = F->getReturnType()->isVoidTy();
 4749   Type *ReturnType = F.getReturnType();
lib/Transforms/IPO/CalledValuePropagation.cpp
  244     if (F->getReturnType()->isVoidTy())
lib/Transforms/IPO/DeadArgumentElimination.cpp
  328   Type *RetTy = F->getReturnType();
  343   Type *RetTy = F->getReturnType();
 1032   if (F->getReturnType() != NF->getReturnType())
 1032   if (F->getReturnType() != NF->getReturnType())
lib/Transforms/IPO/FunctionAttrs.cpp
  583     if (F->getReturnType()->isVoidTy())
  598           if (!isa<Argument>(RetVal) || RetVal->getType() != F->getReturnType())
  703         F->getReturnType()->isVoidTy()) {
  941     if (!F->getReturnType()->isPointerTy())
  951         !F->getReturnType()->isPointerTy())
  971   assert(F->getReturnType()->isPointerTy() &&
 1058     if (!F->getReturnType()->isPointerTy())
 1083           !F->getReturnType()->isPointerTy())
lib/Transforms/IPO/IPConstantPropagation.cpp
  153   if (F.getReturnType()->isVoidTy())
  170   StructType *STy = dyn_cast<StructType>(F.getReturnType());
  175     RetVals.push_back(UndefValue::get(F.getReturnType()));
lib/Transforms/IPO/MergeFunctions.cpp
  718   if (H->getReturnType()->isVoidTy()) {
  721     RI = Builder.CreateRet(createCast(Builder, CI, H->getReturnType()));
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  258         auto *RT = dyn_cast<IntegerType>(F->getReturnType());
lib/Transforms/IPO/WholeProgramDevirt.cpp
 1394   auto RetType = dyn_cast<IntegerType>(TargetsForSlot[0].Fn->getReturnType());
 1416         Target.Fn->getReturnType() != RetType)
lib/Transforms/Instrumentation/GCOVProfiling.cpp
 1219   Type *RetTy = FlushF->getReturnType();
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
 2150   if (!F.getReturnType()->isPointerTy())
lib/Transforms/Scalar/CallSiteSplitting.cpp
  243   bool IsVoid = SplitBB->getParent()->getReturnType()->isVoidTy();
lib/Transforms/Scalar/LowerGuardIntrinsic.cpp
   59       F.getParent(), Intrinsic::experimental_deoptimize, {F.getReturnType()});
lib/Transforms/Scalar/MakeGuardsExplicit.cpp
   96       F.getParent(), Intrinsic::experimental_deoptimize, {F.getReturnType()});
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 2407   if (isa<PointerType>(F.getReturnType()))
lib/Transforms/Scalar/SCCP.cpp
  305     if (auto *STy = dyn_cast<StructType>(F->getReturnType())) {
 1346   if (auto *STy = dyn_cast<StructType>(F->getReturnType())) {
 2194     if (I.second.isOverdefined() || F->getReturnType()->isVoidTy())
 2200     assert(F->getReturnType()->isStructTy() &&
 2202     StructType *STy = cast<StructType>(F->getReturnType());
 2210     ReturnsToZap[i]->setOperand(0, UndefValue::get(F->getReturnType()));
lib/Transforms/Utils/BuildLibCalls.cpp
  108   assert(F.getReturnType()->isPointerTy() &&
lib/Transforms/Utils/CallPromotionUtils.cpp
  328   Type *FuncRetTy = Callee->getReturnType();
  386   Type *CalleeRetTy = Callee->getReturnType();
lib/Transforms/Utils/CodeExtractor.cpp
 1276   Type *OldFnRetTy = TheSwitch->getParent()->getParent()->getReturnType();
lib/Transforms/Utils/GuardUtils.cpp
   54   if (DeoptIntrinsic->getReturnType()->isVoidTy()) {
lib/Transforms/Utils/InlineFunction.cpp
 2118     if (Caller->getReturnType() == TheCall->getType()) {
 2127           {Caller->getReturnType()});
 2176     Type *NewRetTy = Caller->getReturnType();
 2309   Type *RTy = CalledFunc->getReturnType();
lib/Transforms/Utils/ModuleUtils.cpp
  155         Ctor->getReturnType() == Type::getVoidTy(M.getContext()))
  170         F->getReturnType() != Type::getVoidTy(M.getContext())) {
lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
   90   if (F.getReturnType()->isVoidTy()) {
   94     PN = PHINode::Create(F.getReturnType(), ReturningBlocks.size(),
tools/bugpoint/Miscompilation.cpp
  914           if (F->getReturnType()->isVoidTy()) {
tools/clang/lib/CodeGen/CGNonTrivialStruct.cpp
  433       if (!F->getReturnType()->isVoidTy())
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  438   if (auto *VT = dyn_cast<llvm::VectorType>(CurFn->getReturnType()))
 2281   if (Resolver->getReturnType()->isVoidTy())
tools/clang/lib/CodeGen/CodeGenModule.cpp
 1814              ->canLosslesslyBitCastTo(F->getReturnType()) &&
 4260   llvm::Type *newRetTy = newFn->getReturnType();
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 2709     if (Val->getType() != Wrapper->getReturnType())
 2711           Val, Wrapper->getReturnType(), "");
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
   58              ->getReturnType()
  109       llvm::PointerType::getUnqual(orig->getReturnType());
  173       func->getReturnType(), DL.getAllocaAddrSpace(), "var_vector_return_alloc",
unittests/Analysis/SparsePropagation.cpp
  190     if (F->getReturnType()->isVoidTy())