From 63700971ac9cdf198faa4a3a7c226fa579e49206 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 19 Jun 2020 14:52:01 -0700 Subject: [PATCH] As part of using inclusive language within the llvm project, migrate away from the use of blacklist and whitelist. --- llvm/include/llvm/Transforms/IPO/Attributor.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h index 4a92d65..e4fc702 100644 --- a/llvm/include/llvm/Transforms/IPO/Attributor.h +++ b/llvm/include/llvm/Transforms/IPO/Attributor.h @@ -813,12 +813,12 @@ struct Attributor { /// \param InfoCache Cache to hold various information accessible for /// the abstract attributes. /// \param CGUpdater Helper to update an underlying call graph. - /// \param Whitelist If not null, a set limiting the attribute opportunities. + /// \param Allowed If not null, a set limiting the attribute opportunities. Attributor(SetVector &Functions, InformationCache &InfoCache, CallGraphUpdater &CGUpdater, - DenseSet *Whitelist = nullptr) + DenseSet *Allowed = nullptr) : Allocator(InfoCache.Allocator), Functions(Functions), - InfoCache(InfoCache), CGUpdater(CGUpdater), Whitelist(Whitelist) {} + InfoCache(InfoCache), CGUpdater(CGUpdater), Allowed(Allowed) {} ~Attributor(); @@ -894,7 +894,7 @@ struct Attributor { registerAA(AA); // For now we ignore naked and optnone functions. - bool Invalidate = Whitelist && !Whitelist->count(&AAType::ID); + bool Invalidate = Allowed && !Allowed->count(&AAType::ID); const Function *FnScope = IRP.getAnchorScope(); if (FnScope) Invalidate |= FnScope->hasFnAttribute(Attribute::Naked) || @@ -902,7 +902,7 @@ struct Attributor { // Bootstrap the new attribute with an initial update to propagate // information, e.g., function -> call site. If it is not on a given - // whitelist we will not perform updates at all. + // Allowed we will not perform updates at all. if (Invalidate) { AA.getState().indicatePessimisticFixpoint(); return AA; @@ -1387,7 +1387,7 @@ private: SmallVector DependenceStack; /// If not null, a set limiting the attribute opportunities. - const DenseSet *Whitelist; + const DenseSet *Allowed; /// A set to remember the functions we already assume to be live and visited. DenseSet VisitedFunctions; -- 2.7.4