Lines Matching refs:Kinds
82 static bool getDefaultBlacklist(const Driver &D, SanitizerMask Kinds, in getDefaultBlacklist() argument
85 if (Kinds & Address) in getDefaultBlacklist()
87 else if (Kinds & Memory) in getDefaultBlacklist()
89 else if (Kinds & Thread) in getDefaultBlacklist()
91 else if (Kinds & DataFlow) in getDefaultBlacklist()
93 else if (Kinds & CFI) in getDefaultBlacklist()
107 static SanitizerMask setGroupBits(SanitizerMask Kinds) { in setGroupBits() argument
110 if (Kinds & SanitizerKind::ID) \ in setGroupBits()
111 Kinds |= SanitizerKind::ID##Group; in setGroupBits()
113 return Kinds; in setGroupBits()
212 SanitizerMask Kinds = 0; in SanitizerArgs() local
279 Kinds |= Add; in SanitizerArgs()
289 if ((Kinds & Vptr) && in SanitizerArgs()
292 Kinds &= ~Vptr; in SanitizerArgs()
296 if ((Kinds & NeedsLTO) && !D.isUsingLTO()) { in SanitizerArgs()
298 << lastArgumentForMask(D, Args, Kinds & NeedsLTO) << "-flto"; in SanitizerArgs()
306 SanitizerMask KindsToDiagnose = Kinds & ~TrappingKinds & NeedsUbsanCxxRt; in SanitizerArgs()
316 Kinds &= ~KindsToDiagnose; in SanitizerArgs()
330 if (Kinds & Group) { in SanitizerArgs()
331 if (SanitizerMask Incompatible = Kinds & G.second) { in SanitizerArgs()
335 Kinds &= ~Incompatible; in SanitizerArgs()
380 RecoverableKinds &= Kinds; in SanitizerArgs()
383 TrappingKinds &= Kinds; in SanitizerArgs()
389 if (getDefaultBlacklist(D, Kinds, BLPath) && llvm::sys::fs::exists(BLPath)) in SanitizerArgs()
551 Sanitizers.Mask |= Kinds; in SanitizerArgs()
650 SanitizerMask Kinds = 0; in parseArgValues() local
662 Kinds |= Kind; in parseArgValues()
667 return Kinds; in parseArgValues()