| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Constant.cpp | 448 BlockAddress *BlockAddress::get(Function *F, BasicBlock *BB) { in get() 449 auto *LLVMC = llvm::BlockAddress::get(cast<llvm::Function>(F->Val), in get() 451 return cast<BlockAddress>(F->getContext().getOrCreateConstant(LLVMC)); in get() 454 BlockAddress *BlockAddress::get(BasicBlock *BB) { in get() 455 auto *LLVMC = llvm::BlockAddress::get(cast<llvm::BasicBlock>(BB->Val)); in get() 456 return cast<BlockAddress>(BB->getContext().getOrCreateConstant(LLVMC)); in get() 459 BlockAddress *BlockAddress::lookup(const BasicBlock *BB) { in lookup() 460 auto *LLVMC = llvm::BlockAddress::lookup(cast<llvm::BasicBlock>(BB->Val)); in lookup() 461 return cast_or_null<BlockAddress>(BB->getContext().getValue(LLVMC)); in lookup() 464 Function *BlockAddress::getFunction() const { in getFunction() [all …]
|
| H A D | Context.cpp | 311 It->second = std::unique_ptr<BlockAddress>( in getOrCreateValueInternal() 312 new BlockAddress(cast<llvm::BlockAddress>(LLVMC), *this)); in getOrCreateValueInternal() 415 assert(isa<llvm::BlockAddress>(U) && in getOrCreateValueInternal()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVStructurizer.cpp | 93 BlockAddress *BA = cast<BlockAddress>(II->getOperand(0)); in getDesignatedMergeBlock() 107 BlockAddress *BA = cast<BlockAddress>(II->getOperand(1)); in getDesignatedContinueBlock() 596 auto MergeAddress = BlockAddress::get(Merge->getParent(), Merge); in addMergeForLoops() 597 auto ContinueAddress = BlockAddress::get(Continue->getParent(), Continue); in addMergeForLoops() 634 auto MergeAddress = BlockAddress::get(BB.getParent(), &BB); in addMergeForNodesWithMultiplePredecessors() 756 auto MergeAddress = BlockAddress::get(Merge->getParent(), Merge); in addMergeForDivergentBlocks() 900 BlockAddress *BA = cast<BlockAddress>(I->getOperand(0)); in fixupConstruct() 902 auto MergeAddress = BlockAddress::get(NewExit->getParent(), NewExit); in fixupConstruct() 1091 auto MergeAddress = BlockAddress::get(Merge->getParent(), Merge); in addHeaderToRemainingDivergentDAG() 1105 auto MergeAddress = BlockAddress::get(NewMerge->getParent(), NewMerge); in addHeaderToRemainingDivergentDAG() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/ |
| H A D | CSKYConstantPoolValue.cpp | 105 const BlockAddress *CSKYConstantPoolConstant::getBlockAddress() const { in getBlockAddress() 106 assert(isa<BlockAddress>(CVal) && "CVal should be BlockAddress"); in getBlockAddress() 107 return cast<BlockAddress>(CVal); in getBlockAddress()
|
| H A D | CSKYConstantPoolValue.h | 24 class BlockAddress; variable 124 const BlockAddress *getBlockAddress() const;
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Constants.h | 899 class BlockAddress final : public Constant { 904 BlockAddress(Type *Ty, BasicBlock *BB); 915 LLVM_ABI static BlockAddress *get(Function *F, BasicBlock *BB); 919 LLVM_ABI static BlockAddress *get(BasicBlock *BB); 924 LLVM_ABI static BlockAddress *get(Type *Ty, BasicBlock *BB); 929 LLVM_ABI static BlockAddress *lookup(const BasicBlock *BB); 944 struct OperandTraits<BlockAddress> 945 : public FixedNumOperandTraits<BlockAddress, 1> {}; 947 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(BlockAddress, Value)
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineOperand.h | 25 class BlockAddress; variable 200 const BlockAddress *BA; // For MO_BlockAddress. 587 const BlockAddress *getBlockAddress() const { in getBlockAddress() 788 LLVM_ABI void ChangeToBA(const BlockAddress *BA, int64_t Offset, 917 static MachineOperand CreateBA(const BlockAddress *BA, int64_t Offset,
|
| H A D | AsmPrinter.h | 41 class BlockAddress; variable 616 virtual const MCExpr *lowerBlockAddressConstant(const BlockAddress &BA); 674 MCSymbol *GetBlockAddressSymbol(const BlockAddress *BA) const;
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Constants.cpp | 562 delete static_cast<BlockAddress *>(C); in deleteConstant() 663 if (const BlockAddress *BA = dyn_cast<BlockAddress>(this)) in getRelocationInfo() 679 if (isa<BlockAddress>(LHSOp0) && isa<BlockAddress>(RHSOp0) && in getRelocationInfo() 680 cast<BlockAddress>(LHSOp0)->getFunction() == in getRelocationInfo() 681 cast<BlockAddress>(RHSOp0)->getFunction()) in getRelocationInfo() 1898 BlockAddress *BlockAddress::get(Type *Ty, BasicBlock *BB) { in get() 1899 BlockAddress *&BA = BB->getContext().pImpl->BlockAddresses[BB]; in get() 1901 BA = new BlockAddress(Ty, BB); in get() 1905 BlockAddress *BlockAddress::get(BasicBlock *BB) { in get() 1910 BlockAddress *BlockAddress::get(Function *F, BasicBlock *BB) { in get() [all …]
|
| H A D | StructuralHash.cpp | 168 const BlockAddress *BA = cast<BlockAddress>(C); in hashConstant()
|
| H A D | ConstantFold.cpp | 1010 if (isa<BlockAddress>(V)) in evaluateICmpRelation() 1021 if (const BlockAddress *BA = dyn_cast<BlockAddress>(V1)) { in evaluateICmpRelation() 1023 if (const BlockAddress *BA2 = dyn_cast<BlockAddress>(V2)) { in evaluateICmpRelation() 1037 } else if (isa<BlockAddress>(V2)) { in evaluateICmpRelation()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/ |
| H A D | XtensaConstantPoolValue.cpp | 85 const BlockAddress *XtensaConstantPoolConstant::getBlockAddress() const { in getBlockAddress() 86 return dyn_cast_or_null<BlockAddress>(CVal); in getBlockAddress()
|
| H A D | XtensaConstantPoolValue.h | 25 class BlockAddress; variable 135 const BlockAddress *getBlockAddress() const;
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVConstantPoolValue.h | 23 class BlockAddress; variable
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Values.def | 43 DEF_CONST(BlockAddress, BlockAddress)
|
| H A D | Constant.h | 1427 class BlockAddress final : public Constant { 1428 BlockAddress(llvm::BlockAddress *C, Context &Ctx) in BlockAddress() function 1429 : Constant(ClassID::BlockAddress, C, Ctx) {} in BlockAddress() 1434 LLVM_ABI static BlockAddress *get(Function *F, BasicBlock *BB); 1438 LLVM_ABI static BlockAddress *get(BasicBlock *BB); 1443 LLVM_ABI static BlockAddress *lookup(const BasicBlock *BB); 1450 return From->getSubclassID() == ClassID::BlockAddress; in classof()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | IndirectBrExpandPass.cpp | 141 return isa<BlockAddress>(U.getUser()); in runImpl() 152 auto *BA = cast<BlockAddress>(BlockAddressUseIt->getUser()); in runImpl()
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SplitModule.cpp | 151 BlockAddress *BA = BlockAddress::lookup(&BB); in findPartitions()
|
| H A D | ValueMapper.cpp | 62 DelayedBasicBlock(const BlockAddress &Old) in DelayedBasicBlock() 183 Value *mapBlockAddress(const BlockAddress &BA); 442 if (BlockAddress *BA = dyn_cast<BlockAddress>(C)) in mapValue() 593 Value *Mapper::mapBlockAddress(const BlockAddress &BA) { in mapBlockAddress() 607 return getVM()[&BA] = BlockAddress::get(F, BB ? BB : BA.getBasicBlock()); in mapBlockAddress()
|
| H A D | Evaluator.cpp | 66 if (C->getNumOperands() == 0 || isa<BlockAddress>(C)) in isSimpleEnoughValueToCommitHelper() 547 if (BlockAddress *BA = dyn_cast<BlockAddress>(Val)) in EvaluateBlock()
|
| H A D | FunctionComparator.cpp | 479 const BlockAddress *LBA = cast<BlockAddress>(L); in cmpConstants() 480 const BlockAddress *RBA = cast<BlockAddress>(R); in cmpConstants()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | Lint.cpp | 430 !isa<BlockAddress>(UnderlyingObject), in visitMemoryReference() 436 Check(!isa<BlockAddress>(UnderlyingObject), in visitMemoryReference() 440 Check(!isa<BlockAddress>(UnderlyingObject), in visitMemoryReference() 445 isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
|
| /freebsd/contrib/llvm-project/llvm/tools/bugpoint/ |
| H A D | ExtractFunction.cpp | 67 if (BlockAddress *BA = dyn_cast<BlockAddress>(V)) { in globalInitUsesExternalBA()
|