Lines Matching refs:Arg
184 Value *Arg = CI->getArgOperand(ArgCount); in lowerPrintfForGpu() local
185 Type *ArgType = Arg->getType(); in lowerPrintfForGpu()
199 Arg = Builder.CreateBitCast( in lowerPrintfForGpu()
200 Arg, in lowerPrintfForGpu()
208 Arg = Builder.CreateZExt(Arg, ResType); in lowerPrintfForGpu()
210 Arg = Builder.CreateSExt(Arg, ResType); in lowerPrintfForGpu()
211 ArgType = Arg->getType(); in lowerPrintfForGpu()
213 CI->setOperand(ArgCount, Arg); in lowerPrintfForGpu()
216 ConstantFP *FpCons = dyn_cast<ConstantFP>(Arg); in lowerPrintfForGpu()
220 FPExtInst *FpExt = dyn_cast<FPExtInst>(Arg); in lowerPrintfForGpu()
227 ArgSize = alignTo(getAsConstantStr(Arg).size() + 1, 4); in lowerPrintfForGpu()
339 Value *Arg = CI->getArgOperand(ArgCount); in lowerPrintfForGpu() local
340 Type *ArgType = Arg->getType(); in lowerPrintfForGpu()
344 if (auto *FpCons = dyn_cast<ConstantFP>(Arg)) { in lowerPrintfForGpu()
349 Arg = ConstantFP::get(Ctx, Val); in lowerPrintfForGpu()
350 } else if (auto *FpExt = dyn_cast<FPExtInst>(Arg)) { in lowerPrintfForGpu()
353 Arg = FpExt->getOperand(0); in lowerPrintfForGpu()
357 WhatToStore.push_back(Arg); in lowerPrintfForGpu()
360 StringRef S = getAsConstantStr(Arg); in lowerPrintfForGpu()
403 WhatToStore.push_back(Arg); in lowerPrintfForGpu()
406 WhatToStore.push_back(Arg); in lowerPrintfForGpu()