Home
last modified time | relevance | path

Searched refs:RtnType (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp127 Type *RtnType = Ty->getReturnType(); in createWrapper() local
131 (ExpectedRtnType != RtnType)) in createWrapper()
171 Type *RtnType = Ty->getReturnType(); in createWrapper() local
173 if (RtnType->isVoidTy()) { in createWrapper()
176 LLVM_DEBUG(dbgs() << "Creating dummy return: " << *RtnType << "\n"); in createWrapper()
177 ReturnInst::Create(M->getContext(), UndefValue::get(RtnType), BB); in createWrapper()
178 } else if (RtnType == ExpectedRtnType) { in createWrapper()
180 } else if (CastInst::isBitOrNoopPointerCastable(ExpectedRtnType, RtnType, in createWrapper()
183 CastInst::CreateBitOrPointerCast(Call, RtnType, "cast"); in createWrapper()
186 } else if (RtnType->isStructTy() || ExpectedRtnType->isStructTy()) { in createWrapper()
[all …]