llvm-project/llvm/lib/CodeGen/SelectionDAG
Eli Friedman cfd2c5ce58 Untangle the mess which is MachineBasicBlock::hasAddressTaken().
There are two different senses in which a block can be "address-taken".
There can be a BlockAddress involved, which means we need to map the
IR-level value to some specific block of machine code.  Or there can be
constructs inside a function which involve using the address of a basic
block to implement certain kinds of control flow.

Mixing these together causes a problem: if target-specific passes are
marking random blocks "address-taken", if we have a BlockAddress, we
can't actually tell which MachineBasicBlock corresponds to the
BlockAddress.

So split this into two separate bits: one for BlockAddress, and one for
the machine-specific bits.

Discovered while trying to sort out related stuff on D102817.

Differential Revision: https://reviews.llvm.org/D124697
2022-08-16 16:15:44 -07:00
..
CMakeLists.txt
DAGCombiner.cpp [SelectionDAG][NFC] Fix return type when used isConstantIntBuildVectorOrConstantInt 2022-08-16 10:07:24 +08:00
FastISel.cpp [FastISel] Fix load folding for registers with fixups 2022-05-16 10:25:25 +02:00
FunctionLoweringInfo.cpp Untangle the mess which is MachineBasicBlock::hasAddressTaken(). 2022-08-16 16:15:44 -07:00
InstrEmitter.cpp [SelectionDAG] Don't apply MinRCSize constraint in InstrEmitter::AddRegisterOperand for IMPLICIT_DEF sources. 2022-06-16 14:55:14 -07:00
InstrEmitter.h [DebugInfo][InstrRef] Avoid a crash from mixed variable location modes 2022-04-06 11:55:38 +01:00
LegalizeDAG.cpp [LegalizeTypes][NFC] Use getConstantOperandVal instead of cast constant getvalue 2022-08-12 14:35:10 +08:00
LegalizeFloatTypes.cpp [llvm] Always use TargetConstant for FP_ROUND ISD Nodes 2022-08-03 14:02:11 +01:00
LegalizeIntegerTypes.cpp [LegalizeTypes][NFC] Use getConstantOperandAPInt instead of cast constant getAPInt 2022-08-12 10:21:54 +08:00
LegalizeTypes.cpp [LegalizeTypes] Fix bug in expensive checks verification 2022-05-26 13:13:32 -07:00
LegalizeTypes.h [VP] Add widening for VP_STRIDED_LOAD and VP_STRIDED_STORE 2022-08-04 16:12:01 +02:00
LegalizeTypesGeneric.cpp [LegalizeTypes][NFC] Use getConstantOperandVal instead of cast constant getvalue 2022-08-12 14:35:10 +08:00
LegalizeVectorOps.cpp [llvm] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 11:24:15 -07:00
LegalizeVectorTypes.cpp [LegalizeTypes][NFC] Use dyn_cast instead of isa and cast 2022-08-12 14:18:49 +08:00
ResourcePriorityQueue.cpp Remove unneeded cl::ZeroOrMore for cl::opt/cl::list options 2022-06-05 00:31:44 -07:00
SDNodeDbgValue.h Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
ScheduleDAGFast.cpp [CodeGen] Qualify auto variables in for loops (NFC) 2022-07-17 01:33:28 -07:00
ScheduleDAGRRList.cpp [AMDGPU] Check for CopyToReg PhysReg clobbers in pre-RA-sched 2022-06-30 09:18:04 -07:00
ScheduleDAGSDNodes.cpp [CodeGen] Qualify auto variables in for loops (NFC) 2022-07-17 01:33:28 -07:00
ScheduleDAGSDNodes.h [CodeGen] Use default member initialization (NFC) 2022-01-30 12:32:51 -08:00
ScheduleDAGVLIW.cpp Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
SelectionDAG.cpp [SelectionDAG][NFC] Fix return type when used isConstantIntBuildVectorOrConstantInt 2022-08-16 10:07:24 +08:00
SelectionDAGAddressAnalysis.cpp [llvm] Don't use Optional::hasValue (NFC) 2022-06-20 10:38:12 -07:00
SelectionDAGBuilder.cpp Untangle the mess which is MachineBasicBlock::hasAddressTaken(). 2022-08-16 16:15:44 -07:00
SelectionDAGBuilder.h Remove redundaunt virtual specifiers (NFC) 2022-07-25 23:00:59 -07:00
SelectionDAGDumper.cpp [stackmaps] Legalise patchpoint arguments. 2022-07-15 12:01:59 +01:00
SelectionDAGISel.cpp Use has_value/value instead of hasValue/getValue (NFC) 2022-07-15 21:48:17 -07:00
SelectionDAGPrinter.cpp Revert "[CodeGen] Place SDNode debug ID declaration under appropriate #if" 2022-04-06 20:32:53 +03:00
SelectionDAGTargetInfo.cpp
StatepointLowering.cpp [SDAG] Fix release build 2022-07-18 14:10:31 +02:00
StatepointLowering.h
TargetLowering.cpp [DAG] Add TODO to remove creation of INSERT_SUBVECTOR nodes from SimplifyMultipleUseDemandedBits 2022-08-12 10:45:30 +01:00