Searched refs:BlockAddress (Results 1 - 25 of 63) sorted by relevance

123

/external/llvm/unittests/Linker/
H A DLinkModulesTest.cpp43 Constant *SwitchCase1BA = BlockAddress::get(SwitchCase1BB);
46 Constant *SwitchCase2BA = BlockAddress::get(SwitchCase2BB);
69 TEST_F(LinkModuleTest, BlockAddress) {
109 ASSERT_TRUE(isa<BlockAddress>(Elem));
110 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(),
112 EXPECT_EQ(cast<BlockAddress>(Elem)->getBasicBlock()->getParent(),
116 ASSERT_TRUE(isa<BlockAddress>(Elem));
117 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(),
119 EXPECT_EQ(cast<BlockAddress>(Elem)->getBasicBlock()->getParent(),
/external/llvm/unittests/Bitcode/
H A DBitReaderTest.cpp42 BlockAddress::get(BB), "table");
/external/llvm/include/llvm/IR/
H A DBasicBlock.h29 class BlockAddress;
74 friend class BlockAddress;
H A DConstants.h746 /// BlockAddress - The address of a basic block.
748 class BlockAddress : public Constant { class in namespace:llvm
751 BlockAddress(Function *F, BasicBlock *BB);
753 /// get - Return a BlockAddress for the specified function and basic block.
754 static BlockAddress *get(Function *F, BasicBlock *BB);
756 /// get - Return a BlockAddress for the specified basic block. The basic
758 static BlockAddress *get(BasicBlock *BB);
760 /// \brief Lookup an existing \c BlockAddress constant for the given
763 /// \returns 0 if \c !BB->hasAddressTaken(), otherwise the \c BlockAddress.
764 static BlockAddress *looku
[all...]
/external/llvm/lib/Transforms/Utils/
H A DValueMapper.cpp118 if (BlockAddress *BA = dyn_cast<BlockAddress>(C)) {
123 return VM[V] = BlockAddress::get(F, BB ? BB : BA->getBasicBlock());
H A DCloneFunction.cpp136 Constant *OldBBAddr = BlockAddress::get(const_cast<Function*>(OldFunc),
138 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB);
306 Constant *OldBBAddr = BlockAddress::get(const_cast<Function*>(OldFunc),
308 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB);
H A DLocal.cpp230 if (BlockAddress *BA =
231 dyn_cast<BlockAddress>(IBI->getAddress()->stripPointerCasts())) {
497 BlockAddress *BA = BlockAddress::get(DestBB);
/external/llvm/include/llvm/CodeGen/
H A DMachineOperand.h22 class BlockAddress;
176 const BlockAddress *BA; // For MO_BlockAddress.
438 const BlockAddress *getBlockAddress() const {
652 static MachineOperand CreateBA(const BlockAddress *BA, int64_t Offset,
H A DAsmPrinter.h27 class BlockAddress;
319 /// Return the MCSymbol used to satisfy BlockAddress uses of the specified
321 MCSymbol *GetBlockAddressSymbol(const BlockAddress *BA) const;
H A DISDOpcodes.h63 JumpTable, ConstantPool, ExternalSymbol, BlockAddress, enumerator in enum:llvm::ISD::NodeType
H A DMachineInstrBuilder.h142 const MachineInstrBuilder &addBlockAddress(const BlockAddress *BA,
H A DSelectionDAGNodes.h1683 const BlockAddress *BA;
1687 BlockAddressSDNode(unsigned NodeTy, EVT VT, const BlockAddress *ba,
1693 const BlockAddress *getBlockAddress() const { return BA; }
1698 return N->getOpcode() == ISD::BlockAddress ||
/external/llvm/lib/IR/
H A DBasicBlock.cpp70 // is no indirect branch). Handle these cases by zapping the BlockAddress
77 BlockAddress *BA = cast<BlockAddress>(user_back());
H A DConstants.cpp380 if (const BlockAddress *BA = dyn_cast<BlockAddress>(this))
394 isa<BlockAddress>(LHS->getOperand(0)) &&
395 isa<BlockAddress>(RHS->getOperand(0)) &&
396 cast<BlockAddress>(LHS->getOperand(0))->getFunction() ==
397 cast<BlockAddress>(RHS->getOperand(0))->getFunction())
1388 //---- BlockAddress::get() implementation.
1391 BlockAddress *BlockAddress::get(BasicBlock *BB) {
1396 BlockAddress *BlockAddres
1406 BlockAddress::BlockAddress(Function *F, BasicBlock *BB) function in class:BlockAddress
[all...]
H A DLLVMContextImpl.h290 DenseMap<std::pair<const Function *, const BasicBlock *>, BlockAddress *>
H A DConstantFold.cpp1365 !isa<BlockAddress>(V1)) {
1367 !isa<BlockAddress>(V2)) {
1403 // Now we know that the RHS is a GlobalValue, BlockAddress or simple
1408 } else if (isa<BlockAddress>(V2)) {
1417 } else if (const BlockAddress *BA = dyn_cast<BlockAddress>(V1)) {
1426 // Now we know that the RHS is a GlobalValue, BlockAddress or simple
1429 if (const BlockAddress *BA2 = dyn_cast<BlockAddress>(V2)) {
/external/llvm/lib/Target/ARM/
H A DARMConstantPoolValue.cpp160 const BlockAddress *ARMConstantPoolConstant::getBlockAddress() const {
161 return dyn_cast_or_null<BlockAddress>(CVal);
H A DARMConstantPoolValue.h24 class BlockAddress;
165 const BlockAddress *getBlockAddress() const;
/external/llvm/tools/llvm-diff/
H A DDifferenceEngine.cpp389 if (isa<BlockAddress>(L))
390 return Blocks[cast<BlockAddress>(L)->getBasicBlock()]
391 == cast<BlockAddress>(R)->getBasicBlock();
/external/llvm/tools/bugpoint/
H A DExtractFunction.cpp69 if (BlockAddress *BA = dyn_cast<BlockAddress>(V)) {
/external/llvm/lib/Analysis/
H A DLint.cpp395 !isa<BlockAddress>(UnderlyingObject),
401 Assert1(!isa<BlockAddress>(UnderlyingObject),
405 Assert1(!isa<BlockAddress>(UnderlyingObject),
410 isa<BlockAddress>(UnderlyingObject),
/external/llvm/lib/Transforms/IPO/
H A DIPConstantPropagation.cpp93 if (isa<BlockAddress>(UR)) continue;
/external/llvm/lib/Target/MSP430/
H A DMSP430ISelDAGToDAG.cpp51 const BlockAddress *BlockAddr;
/external/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp659 BlockAddress *BA = dyn_cast<BlockAddress>(*UI);
663 BlockAddress::get(NewF, BA->getBasicBlock()));
940 if (isa<Function>(*i) || isa<BlockAddress>(*i))
/external/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp328 return dyn_cast<BlockAddress>(Val->stripPointerCasts());
334 /// if we can infer that the value is a known ConstantInt/BlockAddress or undef
647 BlockAddress *BA = BlockAddress::get(BB);
1141 DestBB = cast<BlockAddress>(Val)->getBasicBlock();

Completed in 1504 milliseconds

123