Lines Matching defs:Name
59 /// Get the section name for the counter variables.
64 /// Get the section name for the name variables.
69 /// Get the section name for the profile data variables.
74 /// Get the section name for the coverage mapping data.
170 assert(isa<GlobalVariable>(V) && "Missing reference to function name");
171 GlobalVariable *Name = cast<GlobalVariable>(V);
173 // If we have region counters for this name, we've already handled it.
174 auto It = RegionCounters.find(Name);
178 // Move the name variable to the right section.
179 Name->setSection(getNameSection());
180 Name->setAlignment(1);
184 /// Get the name of a profiling variable for a particular function.
187 StringRef Name = Arr->isCString() ? Arr->getAsCString() : Arr->getAsString();
188 return ("__llvm_profile_" + VarName + "_" + Name).str();
193 GlobalVariable *Name = Inc->getName();
194 auto It = RegionCounters.find(Name);
198 // Move the name variable to the right section.
199 Name->setSection(getNameSection());
200 Name->setAlignment(1);
207 auto *Counters = new GlobalVariable(*M, CounterTy, false, Name->getLinkage(),
210 Counters->setVisibility(Name->getVisibility());
217 auto *NameArrayTy = Name->getType()->getPointerElementType();
229 ConstantExpr::getBitCast(Name, Int8PtrTy),
231 auto *Data = new GlobalVariable(*M, DataTy, true, Name->getLinkage(),
234 Data->setVisibility(Name->getVisibility());