Home
last modified time | relevance | path

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

123

/minix3/external/bsd/llvm/dist/llvm/unittests/Linker/
H A DLinkModulesTest.cpp45 Constant *SwitchCase1BA = BlockAddress::get(SwitchCase1BB); in SetUp()
48 Constant *SwitchCase2BA = BlockAddress::get(SwitchCase2BB); in SetUp()
71 TEST_F(LinkModuleTest, BlockAddress) { in TEST_F() argument
111 ASSERT_TRUE(isa<BlockAddress>(Elem)); in TEST_F()
112 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(), in TEST_F()
114 EXPECT_EQ(cast<BlockAddress>(Elem)->getBasicBlock()->getParent(), in TEST_F()
118 ASSERT_TRUE(isa<BlockAddress>(Elem)); in TEST_F()
119 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(), in TEST_F()
121 EXPECT_EQ(cast<BlockAddress>(Elem)->getBasicBlock()->getParent(), in TEST_F()
/minix3/external/bsd/llvm/dist/llvm/test/Transforms/GlobalDCE/
H A Ddeadblockaddr.ll4 ; so that a dead BlockAddress reference to foo won't prevent other passes
/minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DConstants.h758 class BlockAddress : public Constant {
761 BlockAddress(Function *F, BasicBlock *BB);
764 static BlockAddress *get(Function *F, BasicBlock *BB);
768 static BlockAddress *get(BasicBlock *BB);
774 static BlockAddress *lookup(const BasicBlock *BB);
792 struct OperandTraits<BlockAddress> :
793 public FixedNumOperandTraits<BlockAddress, 2> {
796 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(BlockAddress, Value)
H A DBasicBlock.h30 class BlockAddress; variable
75 friend class BlockAddress;
/minix3/external/bsd/llvm/dist/llvm/include/llvm/CodeGen/
H A DMachineOperand.h22 class BlockAddress; variable
176 const BlockAddress *BA; // For MO_BlockAddress.
438 const BlockAddress *getBlockAddress() const { in getBlockAddress()
662 static MachineOperand CreateBA(const BlockAddress *BA, int64_t Offset,
H A DAsmPrinter.h27 class BlockAddress; variable
331 MCSymbol *GetBlockAddressSymbol(const BlockAddress *BA) const;
H A DISDOpcodes.h63 JumpTable, ConstantPool, ExternalSymbol, BlockAddress, enumerator
H A DSelectionDAGNodes.h1727 const BlockAddress *BA;
1731 BlockAddressSDNode(unsigned NodeTy, EVT VT, const BlockAddress *ba,
1737 const BlockAddress *getBlockAddress() const { return BA; }
1742 return N->getOpcode() == ISD::BlockAddress ||
/minix3/external/bsd/llvm/dist/llvm/lib/Target/ARM/
H A DARMConstantPoolValue.h24 class BlockAddress; variable
165 const BlockAddress *getBlockAddress() const;
H A DARMConstantPoolValue.cpp160 const BlockAddress *ARMConstantPoolConstant::getBlockAddress() const { in getBlockAddress()
161 return dyn_cast_or_null<BlockAddress>(CVal); in getBlockAddress()
/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A DConstants.cpp425 if (const BlockAddress *BA = dyn_cast<BlockAddress>(this)) in getRelocationInfo()
439 isa<BlockAddress>(LHS->getOperand(0)) && in getRelocationInfo()
440 isa<BlockAddress>(RHS->getOperand(0)) && in getRelocationInfo()
441 cast<BlockAddress>(LHS->getOperand(0))->getFunction() == in getRelocationInfo()
442 cast<BlockAddress>(RHS->getOperand(0))->getFunction()) in getRelocationInfo()
1465 BlockAddress *BlockAddress::get(BasicBlock *BB) { in get()
1470 BlockAddress *BlockAddress::get(Function *F, BasicBlock *BB) { in get()
1471 BlockAddress *&BA = in get()
1474 BA = new BlockAddress(F, BB); in get()
1480 BlockAddress::BlockAddress(Function *F, BasicBlock *BB) in BlockAddress() function in BlockAddress
[all …]
H A DBasicBlock.cpp80 BlockAddress *BA = cast<BlockAddress>(user_back()); in ~BasicBlock()
H A DConstantFold.cpp1406 !isa<BlockAddress>(V1)) { in evaluateICmpRelation()
1408 !isa<BlockAddress>(V2)) { in evaluateICmpRelation()
1449 } else if (isa<BlockAddress>(V2)) { in evaluateICmpRelation()
1458 } else if (const BlockAddress *BA = dyn_cast<BlockAddress>(V1)) { in evaluateICmpRelation()
1470 if (const BlockAddress *BA2 = dyn_cast<BlockAddress>(V2)) { in evaluateICmpRelation()
H A DLLVMContextImpl.h316 DenseMap<std::pair<const Function *, const BasicBlock *>, BlockAddress *>
H A DFunction.cpp841 if (isa<BlockAddress>(FU)) in hasAddressTaken()
860 if (!isa<BlockAddress>(U)) in isDefTriviallyDead()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A DCloneFunction.cpp136 Constant *OldBBAddr = BlockAddress::get(const_cast<Function*>(OldFunc), in CloneFunctionInto()
138 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); in CloneFunctionInto()
306 Constant *OldBBAddr = BlockAddress::get(const_cast<Function*>(OldFunc), in CloneBlock()
308 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); in CloneBlock()
H A DValueMapper.cpp85 if (BlockAddress *BA = dyn_cast<BlockAddress>(C)) { in MapValue()
90 return VM[V] = BlockAddress::get(F, BB ? BB : BA->getBasicBlock()); in MapValue()
H A DLocal.cpp233 if (BlockAddress *BA = in ConstantFoldTerminator()
234 dyn_cast<BlockAddress>(IBI->getAddress()->stripPointerCasts())) { in ConstantFoldTerminator()
508 BlockAddress *BA = BlockAddress::get(DestBB); in MergeBasicBlockIntoOnlyPred()
/minix3/external/bsd/llvm/dist/llvm/lib/Analysis/
H A DLint.cpp400 !isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
406 Assert1(!isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
410 Assert1(!isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
415 isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
/minix3/external/bsd/llvm/dist/llvm/tools/bugpoint/
H A DExtractFunction.cpp69 if (BlockAddress *BA = dyn_cast<BlockAddress>(V)) { in globalInitUsesExternalBA()
/minix3/external/bsd/llvm/dist/llvm/tools/llvm-diff/
H A DDifferenceEngine.cpp389 if (isa<BlockAddress>(L)) in equivalentAsOperands()
390 return Blocks[cast<BlockAddress>(L)->getBasicBlock()] in equivalentAsOperands()
391 == cast<BlockAddress>(R)->getBasicBlock(); in equivalentAsOperands()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/IPO/
H A DIPConstantPropagation.cpp93 if (isa<BlockAddress>(UR)) continue; in PropagateConstantsIntoArguments()
/minix3/minix/drivers/power/acpi/include/
H A Dactbl3.h341 UINT64 BlockAddress; member
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp334 return dyn_cast<BlockAddress>(Val->stripPointerCasts()); in getKnownConstant()
655 BlockAddress *BA = BlockAddress::get(BB); in hasAddressTakenAndUsed()
1174 DestBB = cast<BlockAddress>(Val)->getBasicBlock(); in ProcessThreadableEdges()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp765 BlockAddress::get(const_cast<BasicBlock *>(MBB->getBasicBlock())); in LowerBR_JT()
1035 const BlockAddress *BA = cast<BlockAddressSDNode>(Op)->getBlockAddress(); in LowerBlockAddress()
1315 setOperationAction(ISD::BlockAddress, MVT::i32, Custom); in HexagonTargetLowering()
1559 case ISD::BlockAddress: return LowerBlockAddress(Op, DAG); in LowerOperation()

123