Home
last modified time | relevance | path

Searched refs:BlockAddress (Results 1 – 25 of 110) sorted by relevance

12345

/llvm-project-15.0.7/llvm/unittests/Linker/
H A DLinkModulesTest.cpp47 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 DCSKYConstantPoolValue.cpp98 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 DCSKYConstantPoolValue.h24 class BlockAddress; variable
118 const BlockAddress *getBlockAddress() const;
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstants.h849 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 DValue.def80 HANDLE_CONSTANT(BlockAddress)
/llvm-project-15.0.7/llvm/test/Transforms/GlobalDCE/
H A Ddeadblockaddr.ll4 ; so that a dead BlockAddress reference to foo won't prevent other passes
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DIndirectBrExpandPass.cpp134 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 DMachineOperand.h24 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 DAsmPrinter.h35 class BlockAddress; variable
597 MCSymbol *GetBlockAddressSymbol(const BlockAddress *BA) const;
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstants.cpp523 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 DBasicBlock.cpp84 BlockAddress *BA = cast<BlockAddress>(user_back()); in ~BasicBlock()
H A DConstantFold.cpp1415 !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 DARMConstantPoolValue.h26 class BlockAddress; variable
175 const BlockAddress *getBlockAddress() const;
H A DARMConstantPoolValue.cpp187 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 DSplitModule.cpp139 BlockAddress *BA = BlockAddress::lookup(&BB); in findPartitions()
H A DValueMapper.cpp63 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 DEvaluator.cpp67 if (C->getNumOperands() == 0 || isa<BlockAddress>(C)) in isSimpleEnoughValueToCommitHelper()
569 if (BlockAddress *BA = dyn_cast<BlockAddress>(Val)) in EvaluateBlock()
H A DFunctionComparator.cpp372 const BlockAddress *LBA = cast<BlockAddress>(L); in cmpConstants()
373 const BlockAddress *RBA = cast<BlockAddress>(R); in cmpConstants()
H A DCloneFunction.cpp184 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 DWinCFGuard.cpp51 if (isa<BlockAddress>(FnUser)) in isPossibleIndirectCallTarget()
/llvm-project-15.0.7/llvm/test/CodeGen/Generic/
H A Daddr-label.ll6 ; NVPTX cannot select BlockAddress
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLint.cpp419 !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 Dcallbr-asm-bb-exports.ll9 ; CHECK-NEXT: t16: i64 = BlockAddress<@test, %fail> 0
/llvm-project-15.0.7/llvm/tools/bugpoint/
H A DExtractFunction.cpp67 if (BlockAddress *BA = dyn_cast<BlockAddress>(V)) { in globalInitUsesExternalBA()
/llvm-project-15.0.7/llvm/tools/llvm-diff/lib/
H A DDifferenceEngine.cpp459 if (isa<BlockAddress>(L)) in equivalentAsOperands()
460 return Blocks[cast<BlockAddress>(L)->getBasicBlock()] in equivalentAsOperands()
461 == cast<BlockAddress>(R)->getBasicBlock(); in equivalentAsOperands()

12345