llvm-project/llvm/unittests/Analysis
Kazu Hirata b6a01caa64 [llvm/unittests] Use std::nullopt instead of None (NFC)
This patch mechanically replaces None with std::nullopt where the
compiler would warn if None were deprecated.  The intent is to reduce
the amount of manual work required in migrating from Optional to
std::optional.

This is part of an effort to migrate from llvm::Optional to
std::optional:

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2022-12-02 22:10:37 -08:00
..
Inputs/ir2native_x86_64_model [mlgo] Use TFLite for 'development' mode. 2022-08-24 16:07:24 -07:00
AliasAnalysisTest.cpp [llvm/unittests] Use std::nullopt instead of None (NFC) 2022-12-02 22:10:37 -08:00
AliasSetTrackerTest.cpp [AST] Fix unit test to use BatchAA (NFC) 2022-09-09 16:07:04 +02:00
AssumeBundleQueriesTest.cpp
BasicAliasAnalysisTest.cpp [AA] Pass AAResults through AAQueryInfo 2022-10-06 10:10:19 +02:00
BlockFrequencyInfoTest.cpp Reland "[llvm][NFC] Use c++17 style variable type traits" 2022-11-08 14:15:15 +00:00
BranchProbabilityInfoTest.cpp
CFGTest.cpp [test] Fix old memory leak in a test 2022-07-15 16:56:20 -07:00
CGSCCPassManagerTest.cpp [NFC] Add #include for constants 2022-02-23 01:26:53 -08:00
CMakeLists.txt [nfc][mlgo] Separate logger and training-mode model evaluator 2022-08-03 16:20:28 -07:00
CallGraphTest.cpp Reland "[llvm][NFC] Use c++17 style variable type traits" 2022-11-08 14:15:15 +00:00
CaptureTrackingTest.cpp
ConstraintSystemTest.cpp
DDGTest.cpp
DivergenceAnalysisTest.cpp
DomTreeUpdaterTest.cpp
FunctionPropertiesAnalysisTest.cpp [FunctionPropertiesAnalysis] Generalize support for unreachable 2022-06-21 08:18:01 -07:00
GlobalsModRefTest.cpp [AA] Rename getModRefBehavior() to getMemoryEffects() (NFC) 2022-10-19 11:03:54 +02:00
IRSimilarityIdentifierTest.cpp [llvm] Use has_value instead of hasValue (NFC) 2022-07-12 22:25:42 -07:00
IVDescriptorsTest.cpp [LV][IVDescriptors] Fix recurrence identity element for FMin and FMax reductions 2022-11-04 10:39:37 -04:00
InlineCostTest.cpp Cleanup includes: LLVMAnalysis 2022-03-01 18:01:54 +01:00
LazyCallGraphTest.cpp [LazyCallGraph] Handle spurious ref edges when deleting a dead function 2022-09-22 15:01:15 -07:00
LoadsTest.cpp [NFC] Add #include for constants 2022-02-23 01:26:53 -08:00
LoopInfoTest.cpp [llvm/unittests] Use std::nullopt instead of None (NFC) 2022-12-02 22:10:37 -08:00
LoopNestTest.cpp
MLModelRunnerTest.cpp Fix implicit double -> float truncation warnings. NFCI. 2022-05-13 19:07:00 +01:00
MemoryBuiltinsTest.cpp [llvm/unittests] Use std::nullopt instead of None (NFC) 2022-12-02 22:10:37 -08:00
MemoryProfileInfoTest.cpp Restore "[MemProf] ThinLTO summary support" with more fixes 2022-11-16 09:42:41 -08:00
MemorySSATest.cpp [NFC] Add tests for MemorySSA shouldn't contain debug instructions 2022-08-19 15:03:29 +08:00
PhiValuesTest.cpp [NFC] Add #include for constants 2022-02-23 01:26:53 -08:00
ProfileSummaryInfoTest.cpp
ScalarEvolutionTest.cpp [llvm/unittests] Use std::nullopt instead of None (NFC) 2022-12-02 22:10:37 -08:00
SparsePropagation.cpp
TBAATest.cpp
TFUtilsTest.cpp [mlgo][nfc] Make `LoggedFeatureSpec` an implementation detail 2022-11-30 15:57:58 -08:00
TargetLibraryInfoTest.cpp [InstCombine] Tighten up known library function signature tests (PR #56463) 2022-08-10 14:15:46 -06:00
TensorSpecTest.cpp [llvm] Don't use Optional::{hasValue,getValue} (NFC) 2022-06-25 11:24:23 -07:00
TrainingLoggerTest.cpp [mlgo][nfc] Make `LoggedFeatureSpec` an implementation detail 2022-11-30 15:57:58 -08:00
UnrollAnalyzerTest.cpp
ValueLatticeTest.cpp [ValueLattice] Use DL-aware folding in getCompare() 2022-11-02 10:41:11 +01:00
ValueTrackingTest.cpp [llvm/unittests] Use std::nullopt instead of None (NFC) 2022-12-02 22:10:37 -08:00
VectorFunctionABITest.cpp [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
VectorUtilsTest.cpp [Analysis] Fix warnings 2022-10-30 12:52:06 -07:00