Lines Matching refs:Arg
183 Value *Arg = CI->getArgOperand(ArgCount); in lowerPrintfForGpu() local
184 Type *ArgType = Arg->getType(); in lowerPrintfForGpu()
198 Arg = Builder.CreateBitCast( in lowerPrintfForGpu()
199 Arg, in lowerPrintfForGpu()
207 Arg = Builder.CreateZExt(Arg, ResType); in lowerPrintfForGpu()
209 Arg = Builder.CreateSExt(Arg, ResType); in lowerPrintfForGpu()
210 ArgType = Arg->getType(); in lowerPrintfForGpu()
212 CI->setOperand(ArgCount, Arg); in lowerPrintfForGpu()
215 ConstantFP *FpCons = dyn_cast<ConstantFP>(Arg); in lowerPrintfForGpu()
219 FPExtInst *FpExt = dyn_cast<FPExtInst>(Arg); in lowerPrintfForGpu()
226 ArgSize = alignTo(getAsConstantStr(Arg).size() + 1, 4); in lowerPrintfForGpu()
336 Value *Arg = CI->getArgOperand(ArgCount); in lowerPrintfForGpu() local
337 Type *ArgType = Arg->getType(); in lowerPrintfForGpu()
341 if (auto *FpCons = dyn_cast<ConstantFP>(Arg)) { in lowerPrintfForGpu()
346 Arg = ConstantFP::get(Ctx, Val); in lowerPrintfForGpu()
347 } else if (auto *FpExt = dyn_cast<FPExtInst>(Arg)) { in lowerPrintfForGpu()
350 Arg = FpExt->getOperand(0); in lowerPrintfForGpu()
354 WhatToStore.push_back(Arg); in lowerPrintfForGpu()
357 StringRef S = getAsConstantStr(Arg); in lowerPrintfForGpu()
400 WhatToStore.push_back(Arg); in lowerPrintfForGpu()
403 WhatToStore.push_back(Arg); in lowerPrintfForGpu()