Lines Matching defs:Id
93 static bool lookup(StringRef Name, ID &Id);
94 static unsigned toIndex(ID Id) {
95 assert(static_cast<unsigned>(Id) >
98 return static_cast<unsigned>(Id) - 1 -
107 static unsigned getNumArgs(ID Id) { return Table[toIndex(Id)].NumArgs; }
108 static StringRef getName(ID Id) { return Table[toIndex(Id)].Name; }
570 int Id = 0;
572 Map.insert({Rule.Name, Id++});
1074 bool UnmangledFuncInfo::lookup(StringRef Name, ID &Id) {
1078 Id = toFuncId(Loc->second);
1081 Id = AMDGPULibFunc::EI_NONE;
1101 AMDGPULibFunc::AMDGPULibFunc(EFuncId Id, const AMDGPULibFunc &CopyFrom) {
1102 assert(AMDGPULibFuncBase::isMangled(Id) && CopyFrom.isMangled() &&
1105 Id, *cast<AMDGPUMangledLibFunc>(CopyFrom.Impl.get()));
1108 AMDGPULibFunc::AMDGPULibFunc(EFuncId Id, FunctionType *FT, bool SignedInts) {
1109 Impl = std::make_unique<AMDGPUMangledLibFunc>(Id, FT, SignedInts);