Lines Matching refs:BlockAddress
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()
466 Ctx.getValue(cast<llvm::BlockAddress>(Val)->getFunction())); in getFunction()
469 BasicBlock *BlockAddress::getBasicBlock() const { in getBasicBlock()
471 Ctx.getValue(cast<llvm::BlockAddress>(Val)->getBasicBlock())); in getBasicBlock()