| /llvm-project-15.0.7/llvm/unittests/Linker/ |
| H A D | LinkModulesTest.cpp | 47 Constant *SwitchCase1BA = BlockAddress::get(SwitchCase1BB); in SetUp() 50 Constant *SwitchCase2BA = BlockAddress::get(SwitchCase2BB); in SetUp() 78 TEST_F(LinkModuleTest, BlockAddress) { in TEST_F() argument 116 ASSERT_TRUE(isa<BlockAddress>(Elem)); in TEST_F() 117 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(), in TEST_F() 119 EXPECT_EQ(cast<BlockAddress>(Elem)->getBasicBlock()->getParent(), in TEST_F() 123 ASSERT_TRUE(isa<BlockAddress>(Elem)); in TEST_F() 124 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(), in TEST_F() 126 EXPECT_EQ(cast<BlockAddress>(Elem)->getBasicBlock()->getParent(), in TEST_F()
|
| /llvm-project-15.0.7/llvm/lib/Target/CSKY/ |
| H A D | CSKYConstantPoolValue.cpp | 98 const BlockAddress *CSKYConstantPoolConstant::getBlockAddress() const { in getBlockAddress() 99 assert(isa<BlockAddress>(CVal) && "CVal should be BlockAddress"); in getBlockAddress() 100 return cast<BlockAddress>(CVal); in getBlockAddress()
|
| H A D | CSKYConstantPoolValue.h | 24 class BlockAddress; variable 118 const BlockAddress *getBlockAddress() const;
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Constants.h | 849 class BlockAddress final : public Constant { 852 BlockAddress(Function *F, BasicBlock *BB); 863 static BlockAddress *get(Function *F, BasicBlock *BB); 867 static BlockAddress *get(BasicBlock *BB); 872 static BlockAddress *lookup(const BasicBlock *BB); 887 struct OperandTraits<BlockAddress> 888 : public FixedNumOperandTraits<BlockAddress, 2> {}; 890 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(BlockAddress, Value)
|
| H A D | Value.def | 80 HANDLE_CONSTANT(BlockAddress)
|
| /llvm-project-15.0.7/llvm/test/Transforms/GlobalDCE/ |
| H A D | deadblockaddr.ll | 4 ; so that a dead BlockAddress reference to foo won't prevent other passes
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | IndirectBrExpandPass.cpp | 134 return isa<BlockAddress>(U.getUser()); in runOnFunction() 145 auto *BA = cast<BlockAddress>(BlockAddressUseIt->getUser()); in runOnFunction()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | MachineOperand.h | 24 class BlockAddress; variable 194 const BlockAddress *BA; // For MO_BlockAddress. 577 const BlockAddress *getBlockAddress() const { in getBlockAddress() 875 static MachineOperand CreateBA(const BlockAddress *BA, int64_t Offset,
|
| H A D | AsmPrinter.h | 35 class BlockAddress; variable 597 MCSymbol *GetBlockAddressSymbol(const BlockAddress *BA) const;
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Constants.cpp | 523 delete static_cast<BlockAddress *>(C); in deleteConstant() 625 if (const BlockAddress *BA = dyn_cast<BlockAddress>(this)) in getRelocationInfo() 641 if (isa<BlockAddress>(LHSOp0) && isa<BlockAddress>(RHSOp0) && in getRelocationInfo() 1743 BlockAddress *BlockAddress::get(BasicBlock *BB) { in get() 1748 BlockAddress *BlockAddress::get(Function *F, BasicBlock *BB) { in get() 1749 BlockAddress *&BA = in get() 1752 BA = new BlockAddress(F, BB); in get() 1758 BlockAddress::BlockAddress(Function *F, BasicBlock *BB) in BlockAddress() function in BlockAddress 1766 BlockAddress *BlockAddress::lookup(const BasicBlock *BB) { in lookup() 1772 BlockAddress *BA = in lookup() [all …]
|
| H A D | BasicBlock.cpp | 84 BlockAddress *BA = cast<BlockAddress>(user_back()); in ~BasicBlock()
|
| H A D | ConstantFold.cpp | 1415 !isa<BlockAddress>(V1)) { in evaluateICmpRelation() 1417 !isa<BlockAddress>(V2)) { in evaluateICmpRelation() 1458 } else if (isa<BlockAddress>(V2)) { in evaluateICmpRelation() 1472 } else if (const BlockAddress *BA = dyn_cast<BlockAddress>(V1)) { in evaluateICmpRelation() 1484 if (const BlockAddress *BA2 = dyn_cast<BlockAddress>(V2)) { in evaluateICmpRelation()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMConstantPoolValue.h | 26 class BlockAddress; variable 175 const BlockAddress *getBlockAddress() const;
|
| H A D | ARMConstantPoolValue.cpp | 187 const BlockAddress *ARMConstantPoolConstant::getBlockAddress() const { in getBlockAddress() 188 return dyn_cast_or_null<BlockAddress>(CVal); in getBlockAddress()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SplitModule.cpp | 139 BlockAddress *BA = BlockAddress::lookup(&BB); in findPartitions()
|
| H A D | ValueMapper.cpp | 63 DelayedBasicBlock(const BlockAddress &Old) in DelayedBasicBlock() 181 Value *mapBlockAddress(const BlockAddress &BA); 440 if (BlockAddress *BA = dyn_cast<BlockAddress>(C)) in mapValue() 535 Value *Mapper::mapBlockAddress(const BlockAddress &BA) { in mapBlockAddress() 549 return getVM()[&BA] = BlockAddress::get(F, BB ? BB : BA.getBasicBlock()); in mapBlockAddress()
|
| H A D | Evaluator.cpp | 67 if (C->getNumOperands() == 0 || isa<BlockAddress>(C)) in isSimpleEnoughValueToCommitHelper() 569 if (BlockAddress *BA = dyn_cast<BlockAddress>(Val)) in EvaluateBlock()
|
| H A D | FunctionComparator.cpp | 372 const BlockAddress *LBA = cast<BlockAddress>(L); in cmpConstants() 373 const BlockAddress *RBA = cast<BlockAddress>(R); in cmpConstants()
|
| H A D | CloneFunction.cpp | 184 Constant *OldBBAddr = BlockAddress::get(const_cast<Function *>(OldFunc), in CloneFunctionInto() 186 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); in CloneFunctionInto() 468 Constant *OldBBAddr = BlockAddress::get(const_cast<Function *>(OldFunc), in CloneBlock() 470 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); in CloneBlock()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | WinCFGuard.cpp | 51 if (isa<BlockAddress>(FnUser)) in isPossibleIndirectCallTarget()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Generic/ |
| H A D | addr-label.ll | 6 ; NVPTX cannot select BlockAddress
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | Lint.cpp | 419 !isa<BlockAddress>(UnderlyingObject), in visitMemoryReference() 425 Check(!isa<BlockAddress>(UnderlyingObject), in visitMemoryReference() 429 Check(!isa<BlockAddress>(UnderlyingObject), in visitMemoryReference() 434 isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | callbr-asm-bb-exports.ll | 9 ; CHECK-NEXT: t16: i64 = BlockAddress<@test, %fail> 0
|
| /llvm-project-15.0.7/llvm/tools/bugpoint/ |
| H A D | ExtractFunction.cpp | 67 if (BlockAddress *BA = dyn_cast<BlockAddress>(V)) { in globalInitUsesExternalBA()
|
| /llvm-project-15.0.7/llvm/tools/llvm-diff/lib/ |
| H A D | DifferenceEngine.cpp | 459 if (isa<BlockAddress>(L)) in equivalentAsOperands() 460 return Blocks[cast<BlockAddress>(L)->getBasicBlock()] in equivalentAsOperands() 461 == cast<BlockAddress>(R)->getBasicBlock(); in equivalentAsOperands()
|