Lines Matching refs:Ndx
411 void addUnsignedArg(int Ndx) { UnsignedArgs.insert(Ndx);} in addUnsignedArg() argument
412 void addVoidPtrArg(int Ndx) { VoidPtrArgs.insert(Ndx);} in addVoidPtrArg() argument
413 void addSamplerArg(int Ndx) { SamplerArgs.insert(Ndx);} in addSamplerArg() argument
414 void addAtomicArg(int Ndx) { AtomicArgs.insert(Ndx);} in addAtomicArg() argument
415 void setLocalArgBlock(int Ndx) { in setLocalArgBlock() argument
416 assert(0 <= Ndx && "it is not allowed to set less than zero index"); in setLocalArgBlock()
417 LocalArgBlockIdx = Ndx; in setLocalArgBlock()
419 void setEnumArg(int Ndx, SPIR::TypePrimitiveEnum Enum) { in setEnumArg() argument
420 EnumArgs[Ndx] = Enum;} in setEnumArg()
421 void setArgAttr(int Ndx, unsigned Attr) { in setArgAttr() argument
422 Attrs[Ndx] = Attr;} in setArgAttr()
423 void setVarArg(int Ndx) { in setVarArg() argument
424 assert(0 <= Ndx && "it is not allowed to set less than zero index"); in setVarArg()
425 VarArgIdx = Ndx; in setVarArg()
427 bool isArgUnsigned(int Ndx) { in isArgUnsigned() argument
428 return UnsignedArgs.count(-1) || UnsignedArgs.count(Ndx);} in isArgUnsigned()
429 bool isArgVoidPtr(int Ndx) { in isArgVoidPtr() argument
430 return VoidPtrArgs.count(-1) || VoidPtrArgs.count(Ndx);} in isArgVoidPtr()
431 bool isArgSampler(int Ndx) { in isArgSampler() argument
432 return SamplerArgs.count(Ndx);} in isArgSampler()
433 bool isArgAtomic(int Ndx) { in isArgAtomic() argument
434 return AtomicArgs.count(Ndx);} in isArgAtomic()
435 bool isLocalArgBlock(int Ndx) { in isLocalArgBlock() argument
436 return LocalArgBlockIdx == Ndx;} in isLocalArgBlock()
437 bool isArgEnum(int Ndx, SPIR::TypePrimitiveEnum *Enum = nullptr) {
438 auto Loc = EnumArgs.find(Ndx);
447 unsigned getArgAttr(int Ndx) { in getArgAttr() argument
448 auto Loc = Attrs.find(Ndx); in getArgAttr()
460 BuiltinArgTypeMangleInfo getTypeMangleInfo(int Ndx) { in getTypeMangleInfo() argument
462 Info.IsSigned = !isArgUnsigned(Ndx); in getTypeMangleInfo()
463 Info.IsVoidPtr = isArgVoidPtr(Ndx); in getTypeMangleInfo()
464 Info.IsEnum = isArgEnum(Ndx, &Info.Enum); in getTypeMangleInfo()
465 Info.IsSampler = isArgSampler(Ndx); in getTypeMangleInfo()
466 Info.IsAtomic = isArgAtomic(Ndx); in getTypeMangleInfo()
467 Info.IsLocalArgBlock = isLocalArgBlock(Ndx); in getTypeMangleInfo()
468 Info.Attr = getArgAttr(Ndx); in getTypeMangleInfo()