Lines Matching defs:Arg

101   for (auto &Arg : F.args()) {
103 if (Arg.getType()->isPointerTy()) {
134 for (auto &Arg : F.args())
135 ArgTypes.push_back(Arg.getType());
204 Argument *Arg = F.getArg(ArgIdx);
205 Type *ArgType = Arg->getType();
222 if (hasPointeeTypeAttr(Arg)) {
224 GR->getOrCreateSPIRVType(getPointeeTypeByAttr(Arg), MIRBuilder);
230 for (auto User : Arg->users()) {
294 for (const auto &Arg : F.args()) {
303 if (Arg.hasName())
304 buildOpName(VRegs[i][0], Arg.getName(), MIRBuilder);
305 if (isPointerTy(Arg.getType())) {
306 auto DerefBytes = static_cast<unsigned>(Arg.getDereferenceableBytes());
311 if (Arg.hasAttribute(Attribute::Alignment)) {
313 Arg.getAttribute(Attribute::Alignment).getValueAsInt());
317 if (Arg.hasAttribute(Attribute::ReadOnly)) {
323 if (Arg.hasAttribute(Attribute::ZExt)) {
329 if (Arg.hasAttribute(Attribute::NoAlias)) {
335 if (Arg.hasAttribute(Attribute::ByVal)) {
404 for (const auto &Arg : F.args()) {
411 GR->add(&Arg, &MIRBuilder.getMF(), VRegs[i][0]);
533 for (auto Arg : Info.OrigArgs) {
534 assert(Arg.Regs.size() == 1 && "Call arg has multiple VRegs");
535 ArgVRegs.push_back(Arg.Regs[0]);
536 SPIRVType *SPIRVTy = GR->getOrCreateSPIRVType(Arg.Ty, MIRBuilder);
537 if (!GR->getSPIRVTypeForVReg(Arg.Regs[0]))
538 GR->assignSPIRVTypeToVReg(SPIRVTy, Arg.Regs[0], MF);
557 for (const Argument &Arg : CF->args()) {
558 if (MIRBuilder.getDataLayout().getTypeStoreSize(Arg.getType()).isZero())
585 for (const auto &Arg : Info.OrigArgs) {
586 assert(Arg.Regs.size() == 1 && "Call arg has multiple VRegs");
587 IndirectCall.ArgTys.push_back(Arg.Ty);
588 IndirectCall.ArgRegs.push_back(Arg.Regs[0]);
608 for (const auto &Arg : Info.OrigArgs) {
610 if (Arg.Regs.size() > 1)
612 MIB.addUse(Arg.Regs[0]);