Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:Name

211 void CodeGenModule::addReplacement(StringRef Name, llvm::Constant *C) {
212 Replacements[Name] = C;
662 llvm::GlobalValue *CodeGenModule::GetGlobalValue(StringRef Name) {
663 return getModule().getNamedValue(Name);
1055 static void emitUsed(CodeGenModule &CGM, StringRef Name,
1076 llvm::ConstantArray::get(ATy, UsedArray), Name);
1091 void CodeGenModule::AddDetectMismatch(StringRef Name, StringRef Value) {
1093 getTargetCodeGenInfo().getDetectMismatchOption(Name, Value, Opt);
1234 // might had been created for another decl with the same mangled name but
1313 // Get the globals for file name, annotation, and the line number.
1339 // Blacklist by function name.
1411 std::string Name = "_GUID_" + Uuid.lower();
1412 std::replace(Name.begin(), Name.end(), '-', '_');
1418 if (llvm::GlobalVariable *GV = getModule().getNamedGlobal(Name))
1426 /*isConstant=*/true, llvm::GlobalValue::LinkOnceODRLinkage, Init, Name);
1439 // See if there is already something with the target's name in the module.
1545 // Otherwise, remember that we saw a deferred decl with this name. The
1546 // first use of the mangled name will cause it to move into
1555 const StringRef Name;
1559 Name(N), BI(C), Result(false) {
1568 if (Attr && Name == Attr->getLabel()) {
1577 Name == BuiltinName.slice(strlen("__builtin_"), StringRef::npos)) {
1620 StringRef Name;
1626 Name = Attr->getLabel();
1628 Name = FD->getName();
1631 FunctionIsDirectlyRecursive Walker(Name, Context.BuiltinInfo);
1718 /// GetOrCreateLLVMFunction - If the specified mangled name is not in the
1720 /// is something in the module with the specified name, return it potentially
1747 // If there are two attempts to define the same mangled name, issue an
1793 // If we already created a function with the same mangled name (but different
1794 // type) before, take its name and add it to the list of functions to be
1818 assert(F->getName() == MangledName && "name was uniqued!");
1838 // This is the first use or definition of a mangled name. If there is a
1839 // deferred decl with this name, remember that we need to emit it at the end
1906 /// type and name.
1909 StringRef Name,
1912 GetOrCreateLLVMFunction(Name, FTy, GlobalDecl(), /*ForVTable=*/false,
1921 /// type and name.
1924 StringRef Name,
1927 GetOrCreateLLVMFunction(Name, FTy, GlobalDecl(), /*ForVTable=*/false,
1955 /// GetOrCreateLLVMGlobal - If the specified mangled name is not in the module,
1957 /// is something in the module with the specified name, return it potentially
1994 // This is the first use or definition of a mangled name. If there is a
1995 // deferred decl with this name, remember that we need to emit it at the end
2070 CodeGenModule::CreateOrReplaceCXXRuntimeVariable(StringRef Name,
2073 llvm::GlobalVariable *GV = getModule().getNamedGlobal(Name);
2081 // Because C++ name mangling, the only way we can end up with an already
2082 // existing global with the same name is if it has been declared extern "C".
2089 Linkage, nullptr, Name);
2130 /// specified type and name.
2133 Name) {
2134 return GetOrCreateLLVMGlobal(Name, llvm::PointerType::getUnqual(Ty), nullptr);
2181 // the name existing.
2185 // Must have internal linkage and an ordinary name.
2197 // mangled name if nothing else is using that name.
2201 // If we have multiple internal linkage entities with the same name
2202 // in extern "C" regions, none of them gets that name.
2762 // Create the new alias itself, but don't set a name yet.
3174 StringRef Name) {
3205 GlobalVariableName = Name;
3250 // Get the default prefix if a name wasn't specified.
3279 // we need to give each temporary the same name in every translation unit (and
3281 SmallString<256> Name;
3282 llvm::raw_svector_ostream Out(Name);
3336 getModule(), Type, Constant, Linkage, InitialValue, Name.c_str(),
3748 /// name to the mangled name if possible. People expect to be able to refer
3749 /// to such functions with an unmangled name from inline assembly within the
3753 IdentifierInfo *Name = I.first;
3755 if (Val && !getModule().getNamedValue(Name->getName()))
3756 addUsedGlobal(llvm::GlobalAlias::create(Name->getName(), Val));
3775 /// with the name 'clang.global.decl.ptrs'.
3795 // Find the unique metadata ID for this name.