llvm-project/llvm/lib/Transforms/Utils
Fangrui Song 89fae41ef1 [IR] llvm::Optional => std::optional
Many llvm/IR/* files have been migrated by other contributors.
This migrates most remaining files.
2022-12-05 04:13:11 +00:00
..
AMDGPUEmitPrintf.cpp
ASanStackFrameLayout.cpp
AddDiscriminators.cpp [NFC] Removed call to getInstList() from range loops on BBs. 2022-11-29 17:33:10 -08:00
AssumeBundleBuilder.cpp
BasicBlockUtils.cpp [Transforms] Use std::nullopt instead of None (NFC) 2022-12-02 21:11:37 -08:00
BreakCriticalEdges.cpp [BasicBlockUtils] Allow critical edge splitting with callbr terminators 2022-07-08 09:20:44 +02:00
BuildLibCalls.cpp Attributes: convert Optional to std::optional 2022-12-02 08:15:45 -06:00
BypassSlowDivision.cpp [Transforms] Use std::nullopt instead of None (NFC) 2022-12-02 21:11:37 -08:00
CMakeLists.txt
CallGraphUpdater.cpp Use PoisonValue instead of UndefValue when RAUWing unreachable code [NFC] 2022-09-10 14:28:01 +01:00
CallPromotionUtils.cpp [PGO][indirect-call-promotion] Add extra parameter check for musttail callsite 2022-12-02 10:50:55 -08:00
CanonicalizeAliases.cpp [llvm] Fix comment typos (NFC) 2022-08-07 00:16:14 -07:00
CanonicalizeFreezeInLoops.cpp
CloneFunction.cpp [NFC] Cleanup: Replaces BB->getInstList().splice() with BB->splice(). 2022-12-01 15:37:51 -08:00
CloneModule.cpp CloneModule: Handling cloning ifuncs 2022-11-23 12:22:06 -05:00
CodeExtractor.cpp [Transforms] Use std::nullopt instead of None (NFC) 2022-12-02 21:11:37 -08:00
CodeLayout.cpp Fix compilation of CodeLayout.cpp for MacOS 2022-10-03 21:47:43 +07:00
CodeMoverUtils.cpp [llvm] Use std::nullopt instead of None in comments (NFC) 2022-12-04 17:31:17 -08:00
CtorUtils.cpp
Debugify.cpp DebugInfoMetadata: convert Optional to std::optional 2022-12-04 11:52:02 -06:00
DemoteRegToStack.cpp
EntryExitInstrumenter.cpp [clang][AIX] Fix mcount name and call arguments 2022-10-20 16:20:00 -04:00
EscapeEnumerator.cpp
Evaluator.cpp [IR] llvm::Optional => std::optional 2022-12-05 04:13:11 +00:00
FixIrreducible.cpp [Transforms] Qualify auto in range-based for loops (NFC) 2022-08-27 21:21:02 -07:00
FlattenCFG.cpp [NFC] Cleanup: Replaces BB->getInstList().splice() with BB->splice(). 2022-12-01 15:37:51 -08:00
FunctionComparator.cpp [llvm] Handle dso_local_equivalent in FunctionComparator 2022-09-22 18:42:31 +00:00
FunctionImportUtils.cpp [Transforms] Qualify auto in range-based for loops (NFC) 2022-08-14 12:51:58 -07:00
GlobalStatus.cpp [GlobalOpt] Perform store->dominated load forwarding for stored once globals 2022-06-24 09:09:26 -07:00
GuardUtils.cpp
HelloWorld.cpp
InjectTLIMappings.cpp
InlineFunction.cpp Instructions: convert Optional to std::optional 2022-12-04 14:25:11 -06:00
InstructionNamer.cpp
IntegerDivision.cpp [IntegerDivision][AMDGPU] Use CreateLogicalOr to block poison propagation. 2022-09-15 09:38:02 -07:00
LCSSA.cpp [LCSSA] Update unreachable uses with poison. 2022-09-04 22:26:18 +01:00
LibCallsShrinkWrap.cpp [iwyu] Move <cmath> out of llvm/Support/MathExtras.h 2022-09-28 20:49:01 +02:00
Local.cpp Instructions: convert Optional to std::optional 2022-12-04 14:25:11 -06:00
LoopPeel.cpp [Transforms] Use std::nullopt instead of None (NFC) 2022-12-02 21:11:37 -08:00
LoopRotationUtils.cpp [LoopRotation] Also drop block dispositions. 2022-10-11 15:25:27 +01:00
LoopSimplify.cpp [NFC] Replaced BB->getInstList().{erase(),pop_front(),pop_back()} with eraseFromParent(). 2022-11-23 22:47:46 -08:00
LoopUnroll.cpp [Transforms] Use std::nullopt instead of None (NFC) 2022-12-02 21:11:37 -08:00
LoopUnrollAndJam.cpp [NFC] Replaced BB->getInstList().{erase(),pop_front(),pop_back()} with eraseFromParent(). 2022-11-23 22:47:46 -08:00
LoopUnrollRuntime.cpp [Transforms] Fix comment typos (NFC) 2022-08-07 23:55:24 -07:00
LoopUtils.cpp [Transforms] Use std::nullopt instead of None (NFC) 2022-12-02 21:11:37 -08:00
LoopVersioning.cpp [LoopVersioning,LLE] Clear LoopAccessInfoManager after making changes. 2022-10-04 21:35:42 +01:00
LowerAtomic.cpp [NFC] Switch a few uses of undef to poison as placeholders for unreachable code 2022-07-23 21:50:11 +01:00
LowerGlobalDtors.cpp [Transforms] Qualify auto in range-based for loops (NFC) 2022-08-27 21:21:02 -07:00
LowerInvoke.cpp [NFC] Replaced BB->getInstList().{erase(),pop_front(),pop_back()} with eraseFromParent(). 2022-11-23 22:47:46 -08:00
LowerMemIntrinsics.cpp TargetTransformInfo: convert Optional to std::optional 2022-12-02 11:42:15 -08:00
LowerSwitch.cpp [NFC] Replaced BB->getInstList().{erase(),pop_front(),pop_back()} with eraseFromParent(). 2022-11-23 22:47:46 -08:00
MatrixUtils.cpp [Matrix] Refactor tiled loops in a struct. NFC 2022-07-26 11:02:22 -07:00
Mem2Reg.cpp
MemoryOpRemark.cpp Instructions: convert Optional to std::optional 2022-12-04 14:25:11 -06:00
MemoryTaggingSupport.cpp HWAsan: Fix creating unnecessary bitcast with opaque pointers 2022-11-27 21:24:24 -05:00
MetaRenamer.cpp [llvm] Use std::size instead of llvm::array_lengthof 2022-09-08 09:01:53 -06:00
MisExpect.cpp [llvm][misexpect] Re-enable MisExpect for SampleProfiling 2022-08-26 20:24:10 +00:00
ModuleUtils.cpp Utils: Fix appending to global_ctors with program address spaces 2022-11-29 10:54:11 -05:00
NameAnonGlobals.cpp [LegacyPM] Remove NameAnonGlobalLegacyPass 2022-07-17 14:38:29 -07:00
PredicateInfo.cpp [Transforms] Use std::nullopt instead of None (NFC) 2022-12-02 21:11:37 -08:00
PromoteMemoryToRegister.cpp [NFC] Replaced BB->getInstList().{erase(),pop_front(),pop_back()} with eraseFromParent(). 2022-11-23 22:47:46 -08:00
RelLookupTableConverter.cpp [RelLookupTableConverter] Bail on invalid pointer size (x32) 2022-08-09 09:36:39 +02:00
SCCPSolver.cpp [SCCP] Add helper for getting constant range (NFC) 2022-11-09 12:42:36 +01:00
SSAUpdater.cpp [NFC] Switch a few uses of undef to poison as placeholders for unreachable code 2022-07-30 13:55:56 +01:00
SSAUpdaterBulk.cpp
SampleProfileInference.cpp [llvm] Use range-based for loops (NFC) 2022-09-03 11:17:40 -07:00
SampleProfileLoaderBaseUtil.cpp Remove unneeded cl::ZeroOrMore for cl::opt/cl::list options 2022-06-05 00:31:44 -07:00
SanitizerStats.cpp
ScalarEvolutionExpander.cpp [SCEVExpander] Forget SCEV when replacing congruent phi. 2022-11-01 17:49:38 +00:00
SimplifyCFG.cpp [NFC][SimplifyCFG] `shouldFoldCondBranchesToCommonDestination()`: report the common succ 2022-12-04 20:58:54 +03:00
SimplifyIndVar.cpp [Transforms] Use std::nullopt instead of None (NFC) 2022-12-02 21:11:37 -08:00
SimplifyLibCalls.cpp [Transforms] Use std::nullopt instead of None (NFC) 2022-12-02 21:11:37 -08:00
SizeOpts.cpp
SplitModule.cpp [llvm] Qualify auto in range-based for loops (NFC) 2022-08-13 12:55:42 -07:00
StripGCRelocates.cpp
StripNonLineTableDebugInfo.cpp
SymbolRewriter.cpp
UnifyFunctionExitNodes.cpp [NFC] Replaced BB->getInstList().{erase(),pop_front(),pop_back()} with eraseFromParent(). 2022-11-23 22:47:46 -08:00
UnifyLoopExits.cpp [BasicBlockUtils] Add a new way for CreateControlFlowHub() 2022-10-31 08:58:54 -05:00
Utils.cpp [LegacyPM] Remove NameAnonGlobalLegacyPass 2022-07-17 14:38:29 -07:00
VNCoercion.cpp Take memset_inline into account in analyzeLoadFromClobberingMemInst 2022-10-26 09:50:13 +00:00
ValueMapper.cpp [IR] llvm::Optional => std::optional 2022-12-05 04:13:11 +00:00