Home
last modified time | relevance | path

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

12345

/freebsd-src/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYConstantPoolValue.cpp105 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 DCSKYConstantPoolValue.h24 class BlockAddress; variable
124 const BlockAddress *getBlockAddress() const;
H A DCSKYAsmPrinter.cpp199 const BlockAddress *BA = in emitMachineConstantPoolValue()
/freebsd-src/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h890 class BlockAddress final : public Constant {
893 BlockAddress(Function *F, BasicBlock *BB);
903 /// Return a BlockAddress for the specified function and basic block.
904 static BlockAddress *get(Function *F, BasicBlock *BB);
906 /// Return a BlockAddress for the specified basic block. The basic
908 static BlockAddress *get(BasicBlock *BB);
910 /// Lookup an existing \c BlockAddress constant for the given BasicBlock.
912 /// \returns 0 if \c !BB->hasAddressTaken(), otherwise the \c BlockAddress.
913 static BlockAddress *lookup(const BasicBlock *BB);
928 struct OperandTraits<BlockAddress>
[all...]
H A DValue.def80 HANDLE_CONSTANT(BlockAddress)
/freebsd-src/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineOperand.h24 class BlockAddress; variable
200 const BlockAddress *BA; // For MO_BlockAddress.
587 const BlockAddress *getBlockAddress() const { in getBlockAddress()
786 void ChangeToBA(const BlockAddress *BA, int64_t Offset,
912 static MachineOperand CreateBA(const BlockAddress *BA, int64_t Offset,
H A DAsmPrinter.h38 class BlockAddress; variable
580 /// Lower the specified BlockAddress to an MCExpr.
581 virtual const MCExpr *lowerBlockAddressConstant(const BlockAddress &BA);
637 /// Return the MCSymbol used to satisfy BlockAddress uses of the specified
639 MCSymbol *GetBlockAddressSymbol(const BlockAddress *BA) const;
H A DISDOpcodes.h84 BlockAddress, enumerator
/freebsd-src/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp545 delete static_cast<BlockAddress *>(C); in deleteConstant()
646 if (const BlockAddress *BA = dyn_cast<BlockAddress>(this)) in getRelocationInfo()
662 if (isa<BlockAddress>(LHSOp0) && isa<BlockAddress>(RHSOp0) && in getRelocationInfo()
663 cast<BlockAddress>(LHSOp0)->getFunction() == in getRelocationInfo()
664 cast<BlockAddress>(RHSOp0)->getFunction()) in getRelocationInfo()
1866 BlockAddress *BlockAddress::get(BasicBlock *BB) { in handleOperandChangeImpl()
1871 BlockAddress *BlockAddres in handleOperandChangeImpl()
1772 BlockAddress::BlockAddress(Function *F, BasicBlock *BB) BlockAddress() function in BlockAddress
[all...]
H A DConstantFold.cpp1028 // BlockAddress, GlobalValues, and ConstantExpr's (the most complex). in ConstantFoldBinaryInstruction()
1034 if (isa<BlockAddress>(V)) in ConstantFoldBinaryInstruction()
1045 if (const BlockAddress *BA = dyn_cast<BlockAddress>(V1)) { in ConstantFoldBinaryInstruction()
1046 // Now we know that the RHS is a BlockAddress or simple constant. in ConstantFoldBinaryInstruction()
1047 if (const BlockAddress *BA2 = dyn_cast<BlockAddress>(V2)) { in ConstantFoldBinaryInstruction()
1057 // Now we know that the RHS is a GlobalValue, BlockAddress or simple in ConstantFoldBinaryInstruction()
1061 } else if (isa<BlockAddress>(V2)) { in ConstantFoldBinaryInstruction()
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/
H A DIndirectBrExpandPass.cpp142 return isa<BlockAddress>(U.getUser()); in runImpl()
153 auto *BA = cast<BlockAddress>(BlockAddressUseIt->getUser()); in runImpl()
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSplitModule.cpp152 BlockAddress *BA = BlockAddress::lookup(&BB); in findPartitions()
H A DValueMapper.cpp56 /// A basic block used in a BlockAddress whose function body is not yet
62 DelayedBasicBlock(const BlockAddress &Old) in DelayedBasicBlock()
181 Value *mapBlockAddress(const BlockAddress &BA);
441 if (BlockAddress *BA = dyn_cast<BlockAddress>(C)) in mapValue()
591 Value *Mapper::mapBlockAddress(const BlockAddress &BA) { in mapBlockAddress()
605 return getVM()[&BA] = BlockAddress::get(F, BB ? BB : BA.getBasicBlock()); in mapToSelf()
H A DEvaluator.cpp67 if (C->getNumOperands() == 0 || isa<BlockAddress>(C)) in isSimpleEnoughValueToCommitHelper()
581 if (BlockAddress *BA = dyn_cast<BlockAddress>(Val)) in EvaluateBlock()
H A DCloneFunction.cpp210 Constant *OldBBAddr = BlockAddress::get(const_cast<Function *>(OldFunc), in CloneFunctionInto()
212 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); in CloneFunctionInto()
487 Constant *OldBBAddr = BlockAddress::get(const_cast<Function *>(OldFunc), in CloneBlock()
489 VMap[OldBBAddr] = BlockAddress::get(NewFunc, NewBB); in CloneBlock()
H A DFunctionComparator.cpp465 const BlockAddress *LBA = cast<BlockAddress>(L); in cmpConstants()
466 const BlockAddress *RBA = cast<BlockAddress>(R); in cmpConstants()
/freebsd-src/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMConstantPoolValue.h26 class BlockAddress; variable
175 const BlockAddress *getBlockAddress() const;
H A DARMConstantPoolValue.cpp187 const BlockAddress *ARMConstantPoolConstant::getBlockAddress() const { in getBlockAddress()
188 return dyn_cast_or_null<BlockAddress>(CVal); in getBlockAddress()
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DWinCFGuard.cpp52 if (isa<BlockAddress>(FnUser)) in isPossibleIndirectCallTarget()
/freebsd-src/contrib/llvm-project/llvm/lib/Analysis/
H A DLint.cpp407 !isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
413 Check(!isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
417 Check(!isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
422 isa<BlockAddress>(UnderlyingObject), in visitMemoryReference()
/freebsd-src/contrib/llvm-project/llvm/tools/bugpoint/
H A DExtractFunction.cpp67 if (BlockAddress *BA = dyn_cast<BlockAddress>(V)) { in globalInitUsesExternalBA()
/freebsd-src/contrib/llvm-project/llvm/tools/llvm-diff/lib/
H A DDifferenceEngine.cpp577 if (isa<BlockAddress>(L)) in equivalentAsOperands()
578 return Blocks[cast<BlockAddress>(L)->getBasicBlock()] in equivalentAsOperands()
579 == cast<BlockAddress>(R)->getBasicBlock(); in equivalentAsOperands()
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp1666 if (isa<BlockAddress>(U)) in StripAttr()
1683 if (isa<BlockAddress>(U)) in hasChangeableCCImpl()
1709 if (isa<BlockAddress>(U)) in hasChangeableCCImpl()
1759 if (isa<BlockAddress>(U)) in isValidCandidateForColdCC()
1775 if (isa<BlockAddress>(U)) in hasOnlyColdCalls()
1821 assert(isa<BlockAddress>(U) && in hasInvokeCallers()
1822 "Expected either CallBase or BlockAddress"); in hasInvokeCallers()
/freebsd-src/contrib/llvm-project/llvm/lib/Target/Mips/
H A DRelocation.txt7 ExternalSymbol, BlockAddress
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DSanitizerCoverage.cpp747 BlockAddress::get(AllBlocks[i]), PtrTy)); in CreatePCArray()
1056 CFs.push_back((Constant *)IRB.CreatePointerCast(BlockAddress::get(&BB), in createFunctionControlFlow()
1061 CFs.push_back((Constant *)IRB.CreatePointerCast(BlockAddress::get(SuccBB), in createFunctionControlFlow()

12345