Lines Matching defs:variant
461 Symbol* variant;
462 if (getFunctionVariant(s, &function->signature, file, &variant))
463 // New variant, always replace
464 replaceSym(variant);
467 replaceSym(variant);
469 // This variant we found take the place in the symbol table as the primary
470 // variant.
471 replace(name, variant);
472 return variant;
671 // directly called or defined, in which case we need a function variant.
904 // The new signature doesn't match. Create a variant to the symbol with the
911 Symbol *variant = nullptr;
921 variant = v;
926 bool wasAdded = !variant;
928 // Create a new variant;
929 LLVM_DEBUG(dbgs() << "added new variant\n");
930 variant = reinterpret_cast<Symbol *>(make<SymbolUnion>());
931 variant->isUsedInRegularObj =
933 variant->canInline = true;
934 variant->traced = false;
935 variant->forceExport = false;
936 variants.push_back(variant);
938 LLVM_DEBUG(dbgs() << "variant already exists: " << toString(*variant) << "\n");
939 assert(*variant->getSignature() == *sig);
942 *out = variant;
1036 // Remove any variant symbols that were created due to function signature
1049 LLVM_DEBUG(dbgs() << " variant: " + f->getName() << " "