1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/lib/IR
Kazu Hirata c31e34345d [AsmWriter] Construct SlotTracker with the function
This patch teaches BasicBlock::print to construct an instance of
SlotTracker with the containing function.

Without this patch, we dump:

*** IR Dump After LoopInstSimplifyPass ***
; Preheader:
  br label %1

; Loop:
<badref>:                                         ; preds = %1, %0
  br label %1

Note "<badref>" above.  This happens because BasicBlock::print calls:

  SlotTracker SlotTable(this->getModule());

Note that this constructor does not add the contents of functions to
the slot table.  That is, basic blocks are left unnumbered.

This patch fixes the problem by switching to:

  SlotTracker SlotTable(this->getParent());

which does add the contents of the Module and the function,
this->getParent(), to the slot table.

Differential Revision: https://reviews.llvm.org/D89567
2020-10-20 15:01:40 -07:00
..
AbstractCallSite.cpp
AsmWriter.cpp [AsmWriter] Construct SlotTracker with the function 2020-10-20 15:01:40 -07:00
AttributeImpl.h Reapply "OpaquePtr: Add type to sret attribute" 2020-10-16 11:05:02 -04:00
Attributes.cpp [IR] Adds mustprogress as a LLVM IR attribute 2020-10-20 03:09:57 -04:00
AutoUpgrade.cpp [llvm][mlir] Promote the experimental reduction intrinsics to be first class intrinsics. 2020-10-07 10:36:44 -07:00
BasicBlock.cpp
CFG.cpp Introduce CfgTraits abstraction 2020-10-20 13:50:52 +02:00
CMakeLists.txt Introduce CfgTraits abstraction 2020-10-20 13:50:52 +02:00
Comdat.cpp
ConstantFold.cpp [ConstantFold] Fold the comparison of bitcasted global values 2020-10-20 12:41:49 -07:00
ConstantFold.h
ConstantRange.cpp [ConstantRange] Introduce getMinSignedBits() method 2020-09-22 21:37:30 +03:00
Constants.cpp [InstCombine] visitTrunc - pass through undefs for trunc(shift(trunc/ext(x),c)) patterns 2020-10-13 14:35:18 +01:00
ConstantsContext.h
Core.cpp Reapply "OpaquePtr: Add type to sret attribute" 2020-10-16 11:05:02 -04:00
DataLayout.cpp [SVE] Make ElementCount members private 2020-08-28 14:43:53 +01:00
DebugInfo.cpp [Instruction] Add dropLocation and updateLocationAfterHoist helpers 2020-09-24 15:00:04 -07:00
DebugInfoMetadata.cpp [DebugInfo] Support for DWARF operator DW_OP_over 2020-10-17 08:42:28 +05:30
DebugLoc.cpp
DiagnosticHandler.cpp
DiagnosticInfo.cpp [llvm][LV] Replace unsigned VF with ElementCount VF [NFCI] 2020-08-24 13:54:03 +00:00
DiagnosticPrinter.cpp
DIBuilder.cpp [DebugInfo][flang]Added support for representing Fortran assumed length strings 2020-08-22 10:13:40 +05:30
Dominators.cpp [DomTree] Extend update API to allow a post CFG view. 2020-08-21 17:23:08 -07:00
FPEnv.cpp
Function.cpp [PowerPC] Add assemble disassemble intrinsics for MMA 2020-10-13 13:21:58 -05:00
Globals.cpp [X86][ELF] Prefer lowering MC_GlobalAddress operands to .Lfoo$local for STV_DEFAULT only 2020-08-14 00:09:15 +01:00
GVMaterializer.cpp
InlineAsm.cpp
Instruction.cpp [IR][GVN] allow intrinsics in Instruction's isCommutative query (2nd try) 2020-08-31 16:01:19 -04:00
Instructions.cpp Add validity assert on entry to CastInst::isNoopCast [NFC] 2020-10-07 14:05:45 -07:00
IntrinsicInst.cpp [SVE] Make ElementCount members private 2020-08-28 14:43:53 +01:00
IRBuilder.cpp InstCombine: Fix infinite loop in copy-constant-to-alloca transform 2020-10-14 12:55:25 -04:00
IRPrintingPasses.cpp
LegacyPassManager.cpp Reland No.3: Add new hidden option -print-changed which only reports changes to IR 2020-10-01 17:39:13 +00:00
LLVMBuild.txt
LLVMContext.cpp
LLVMContextImpl.cpp Reduce dropTriviallyDeadConstantArrays cumulative time percentage from 17% to 4% 2020-08-07 11:36:30 -07:00
LLVMContextImpl.h [DebugInfo] Support for DWARF attribute DW_AT_rank 2020-10-10 17:51:12 +05:30
LLVMRemarkStreamer.cpp
Mangler.cpp fix symbol printing on windows 2020-10-15 17:14:55 -04:00
MDBuilder.cpp
Metadata.cpp
MetadataImpl.h
Module.cpp
ModuleSummaryIndex.cpp [ThinLTO] Compile time improvement to propagateAttributes 2020-07-31 10:54:02 -07:00
Operator.cpp
OptBisect.cpp
Pass.cpp
PassInstrumentation.cpp [NewPM][PassInstrument] Add PrintPass callback to StandardInstrumentations 2020-07-30 10:07:57 -07:00
PassManager.cpp
PassRegistry.cpp
PassTimingInfo.cpp [NewPM][PassInstrumentation] Add PreservedAnalyses parameter to AfterPass* callbacks 2020-08-21 16:10:42 +07:00
ProfileSummary.cpp ProfileSummary.cpp - use auto const& iterator in for-range loop to avoid copies. NFCI. 2020-09-21 16:54:26 +01:00
SafepointIRVerifier.cpp
Statepoint.cpp
StructuralHash.cpp (Expensive) Check for Loop, SCC and Region pass return status 2020-08-28 07:56:35 +02:00
SymbolTableListTraitsImpl.h
Type.cpp [SVE] Make ElementCount members private 2020-08-28 14:43:53 +01:00
TypeFinder.cpp
Use.cpp
User.cpp [NFC] Edit the comment in User::replaceUsesOfWith 2020-07-29 10:02:04 +08:00
Value.cpp IR: Have byref imply dereferenceable 2020-09-24 09:57:28 -04:00
ValueSymbolTable.cpp
Verifier.cpp [IR] Adds mustprogress as a LLVM IR attribute 2020-10-20 03:09:57 -04:00