Home
last modified time | relevance | path

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

123

/external/llvm/unittests/Linker/
DLinkModulesTest.cpp45 Constant *SwitchCase1BA = BlockAddress::get(SwitchCase1BB); in SetUp()
48 Constant *SwitchCase2BA = BlockAddress::get(SwitchCase2BB); in SetUp()
72 TEST_F(LinkModuleTest, BlockAddress) { in TEST_F() argument
112 ASSERT_TRUE(isa<BlockAddress>(Elem)); in TEST_F()
113 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(), in TEST_F()
115 EXPECT_EQ(cast<BlockAddress>(Elem)->getBasicBlock()->getParent(), in TEST_F()
119 ASSERT_TRUE(isa<BlockAddress>(Elem)); in TEST_F()
120 EXPECT_EQ(cast<BlockAddress>(Elem)->getFunction(), in TEST_F()
122 EXPECT_EQ(cast<BlockAddress>(Elem)->getBasicBlock()->getParent(), in TEST_F()
/external/llvm/include/llvm/IR/
DConstants.h776 class BlockAddress : public Constant {
779 BlockAddress(Function *F, BasicBlock *BB);
782 static BlockAddress *get(Function *F, BasicBlock *BB);
786 static BlockAddress *get(BasicBlock *BB);
792 static BlockAddress *lookup(const BasicBlock *BB);
810 struct OperandTraits<BlockAddress> :
811 public FixedNumOperandTraits<BlockAddress, 2> {
814 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(BlockAddress, Value)
DBasicBlock.h30 class BlockAddress; variable
67 friend class BlockAddress;
/external/llvm/include/llvm/CodeGen/
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,
DAsmPrinter.h28 class BlockAddress; variable
353 MCSymbol *GetBlockAddressSymbol(const BlockAddress *BA) const;
DISDOpcodes.h63 JumpTable, ConstantPool, ExternalSymbol, BlockAddress, enumerator
DSelectionDAGNodes.h1709 const BlockAddress *BA;
1713 BlockAddressSDNode(unsigned NodeTy, EVT VT, const BlockAddress *ba,
1719 const BlockAddress *getBlockAddress() const { return BA; }
1724 return N->getOpcode() == ISD::BlockAddress ||
/external/llvm/test/Transforms/GlobalDCE/
Ddeadblockaddr.ll4 ; so that a dead BlockAddress reference to foo won't prevent other passes
/external/llvm/lib/Target/ARM/
DARMConstantPoolValue.h24 class BlockAddress; variable
165 const BlockAddress *getBlockAddress() const;
DARMConstantPoolValue.cpp160 const BlockAddress *ARMConstantPoolConstant::getBlockAddress() const { in getBlockAddress()
161 return dyn_cast_or_null<BlockAddress>(CVal); in getBlockAddress()
/external/llvm/lib/Transforms/Utils/
DValueMapper.cpp85 if (BlockAddress *BA = dyn_cast<BlockAddress>(C)) { in MapValue()
90 return VM[V] = BlockAddress::get(F, BB ? BB : BA->getBasicBlock()); in MapValue()
DCloneFunction.cpp136 Constant *OldBBAddr = BlockAddress::get(const_cast<Function*>(OldFunc), in CloneFunctionInto()
138 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); in CloneFunctionInto()
317 Constant *OldBBAddr = BlockAddress::get(const_cast<Function*>(OldFunc), in CloneBlock()
319 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); in CloneBlock()
DLocal.cpp240 if (BlockAddress *BA = in ConstantFoldTerminator()
241 dyn_cast<BlockAddress>(IBI->getAddress()->stripPointerCasts())) { in ConstantFoldTerminator()
514 BlockAddress *BA = BlockAddress::get(DestBB); in MergeBasicBlockIntoOnlyPred()
/external/llvm/lib/IR/
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()
1467 BlockAddress *BlockAddress::get(BasicBlock *BB) { in get()
1472 BlockAddress *BlockAddress::get(Function *F, BasicBlock *BB) { in get()
1473 BlockAddress *&BA = in get()
1476 BA = new BlockAddress(F, BB); in get()
1482 BlockAddress::BlockAddress(Function *F, BasicBlock *BB) in BlockAddress() function in BlockAddress
[all …]
DBasicBlock.cpp76 BlockAddress *BA = cast<BlockAddress>(user_back()); in ~BasicBlock()
DConstantFold.cpp1419 !isa<BlockAddress>(V1)) { in evaluateICmpRelation()
1421 !isa<BlockAddress>(V2)) { in evaluateICmpRelation()
1462 } else if (isa<BlockAddress>(V2)) { in evaluateICmpRelation()
1471 } else if (const BlockAddress *BA = dyn_cast<BlockAddress>(V1)) { in evaluateICmpRelation()
1483 if (const BlockAddress *BA2 = dyn_cast<BlockAddress>(V2)) { in evaluateICmpRelation()
DFunction.cpp872 if (isa<BlockAddress>(FU)) in hasAddressTaken()
891 if (!isa<BlockAddress>(U)) in isDefTriviallyDead()
/external/llvm/lib/CodeGen/
DWinEHPrepare.cpp679 SmallVector<BlockAddress *, 4> ActionTargets; in completeNestedLandingPad()
699 BlockAddress *BA = cast<BlockAddress>(Ret->getReturnValue()); in completeNestedLandingPad()
715 BlockAddress *NewBA = BlockAddress::get(OutlinedHandlerFn, MappedBB); in completeNestedLandingPad()
970 CatchAction->setHandlerBlockOrFunc(BlockAddress::get(HandlerBB)); in processSEHCatchHandler()
1137 ReturnInst::Create(NewBB->getContext(), BlockAddress::get(ContinueBB), NewBB); in handleEndCatch()
/external/llvm/tools/llvm-diff/
DDifferenceEngine.cpp389 if (isa<BlockAddress>(L)) in equivalentAsOperands()
390 return Blocks[cast<BlockAddress>(L)->getBasicBlock()] in equivalentAsOperands()
391 == cast<BlockAddress>(R)->getBasicBlock(); in equivalentAsOperands()
/external/llvm/lib/Analysis/
DLint.cpp410 !isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
416 Assert(!isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
420 Assert(!isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
425 isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
/external/llvm/tools/bugpoint/
DExtractFunction.cpp69 if (BlockAddress *BA = dyn_cast<BlockAddress>(V)) { in globalInitUsesExternalBA()
/external/llvm/lib/Transforms/IPO/
DIPConstantPropagation.cpp93 if (isa<BlockAddress>(UR)) continue; in PropagateConstantsIntoArguments()
DGlobalOpt.cpp1859 if (isa<BlockAddress>(U)) in ChangeCalleesToFastCall()
1882 if (isa<BlockAddress>(U)) in RemoveNestAttribute()
1991 if (C->getNumOperands() == 0 || isa<BlockAddress>(C)) in isSimpleEnoughValueToCommitHelper()
2581 if (BlockAddress *BA = dyn_cast<BlockAddress>(Val)) in EvaluateBlock()
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp331 return dyn_cast<BlockAddress>(Val->stripPointerCasts()); in getKnownConstant()
653 BlockAddress *BA = BlockAddress::get(BB); in hasAddressTakenAndUsed()
1173 DestBB = cast<BlockAddress>(Val)->getBasicBlock(); in ProcessThreadableEdges()
/external/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp719 BlockAddress *BA = dyn_cast<BlockAddress>(*UI); in runOnModule()
723 BlockAddress::get(NewF, BA->getBasicBlock())); in runOnModule()
1056 if (isa<Function>(*i) || isa<BlockAddress>(*i)) in loadShadow()

123