Home
last modified time | relevance | path

Searched refs:MachineBasicBlock (Results 1 – 25 of 1361) sorted by relevance

12345678910>>...55

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDILCFGStructurizer.cpp119 using MBBVector = SmallVector<MachineBasicBlock *, 32>;
120 using MBBInfoMap = std::map<MachineBasicBlock *, BlockInformation *>;
121 using LoopLandInfoMap = std::map<MachineLoop *, MachineBasicBlock *>;
204 int getSCCNum(MachineBasicBlock *MBB) const;
205 MachineBasicBlock *getLoopLandInfo(MachineLoop *LoopRep) const;
206 bool hasBackEdge(MachineBasicBlock *MBB) const;
207 bool isRetiredBlock(MachineBasicBlock *MBB) const;
208 bool isActiveLoophead(MachineBasicBlock *MBB) const;
209 PathToKind singlePathTo(MachineBasicBlock *SrcMBB, MachineBasicBlock *DstMBB,
213 bool needMigrateBlock(MachineBasicBlock *MBB) const;
[all …]
/external/llvm/lib/Target/AMDGPU/
DAMDILCFGStructurizer.cpp125 typedef SmallVector<MachineBasicBlock *, 32> MBBVector;
126 typedef std::map<MachineBasicBlock *, BlockInformation *> MBBInfoMap;
127 typedef std::map<MachineLoop *, MachineBasicBlock *> LoopLandInfoMap;
211 int getSCCNum(MachineBasicBlock *MBB) const;
212 MachineBasicBlock *getLoopLandInfo(MachineLoop *LoopRep) const;
213 bool hasBackEdge(MachineBasicBlock *MBB) const;
214 bool isRetiredBlock(MachineBasicBlock *MBB) const;
215 bool isActiveLoophead(MachineBasicBlock *MBB) const;
216 PathToKind singlePathTo(MachineBasicBlock *SrcMBB, MachineBasicBlock *DstMBB,
220 bool needMigrateBlock(MachineBasicBlock *MBB) const;
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86FrameLowering.h54 void emitStackProbe(MachineFunction &MF, MachineBasicBlock &MBB,
55 MachineBasicBlock::iterator MBBI, const DebugLoc &DL,
60 MachineBasicBlock &PrologMBB) const override;
62 void emitCalleeSavedFrameMoves(MachineBasicBlock &MBB,
63 MachineBasicBlock::iterator MBBI,
68 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
69 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
72 MachineBasicBlock &PrologueMBB) const override;
75 MachineBasicBlock &PrologueMBB) const override;
85 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
[all …]
/external/llvm/lib/Target/X86/
DX86FrameLowering.h54 MachineInstr *emitStackProbe(MachineFunction &MF, MachineBasicBlock &MBB,
55 MachineBasicBlock::iterator MBBI,
60 MachineBasicBlock &PrologMBB) const override;
62 void emitCalleeSavedFrameMoves(MachineBasicBlock &MBB,
63 MachineBasicBlock::iterator MBBI,
68 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
69 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
72 MachineBasicBlock &PrologueMBB) const override;
75 MachineBasicBlock &PrologueMBB) const override;
85 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB,
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
DMachineBasicBlock.h39 friend class MachineBasicBlock;
40 MachineBasicBlock* Parent;
62 class MachineBasicBlock : public ilist_node<MachineBasicBlock> {
71 std::vector<MachineBasicBlock *> Predecessors;
72 std::vector<MachineBasicBlock *> Successors;
98 MachineBasicBlock() {}
100 explicit MachineBasicBlock(MachineFunction &mf, const BasicBlock *bb);
102 ~MachineBasicBlock();
154 typedef std::vector<MachineBasicBlock *>::iterator pred_iterator;
155 typedef std::vector<MachineBasicBlock *>::const_iterator const_pred_iterator;
[all …]
DMachineDominators.h27 inline void DominatorTreeBase<MachineBasicBlock>::addRoot(MachineBasicBlock* MBB) { in addRoot()
31 EXTERN_TEMPLATE_INSTANTIATION(class DomTreeNodeBase<MachineBasicBlock>);
32 EXTERN_TEMPLATE_INSTANTIATION(class DominatorTreeBase<MachineBasicBlock>);
34 typedef DomTreeNodeBase<MachineBasicBlock> MachineDomTreeNode;
43 DominatorTreeBase<MachineBasicBlock>* DT;
49 DominatorTreeBase<MachineBasicBlock>& getBase() { return *DT; } in getBase()
57 inline const std::vector<MachineBasicBlock*> &getRoots() const { in getRoots()
61 inline MachineBasicBlock *getRoot() const { in getRoot()
75 inline bool dominates(MachineBasicBlock* A, MachineBasicBlock* B) const { in dominates()
82 MachineBasicBlock *BBA = A->getParent(), *BBB = B->getParent(); in dominates()
[all …]
/external/llvm/lib/CodeGen/
DBranchFolding.h44 MachineBasicBlock *Block;
46 MergePotentialsElt(unsigned h, MachineBasicBlock *b) in MergePotentialsElt()
50 MachineBasicBlock *getBlock() const { return Block; } in getBlock()
52 void setBlock(MachineBasicBlock *MBB) { in setBlock()
60 SmallPtrSet<const MachineBasicBlock*, 2> TriedMerging;
61 DenseMap<const MachineBasicBlock *, int> FuncletMembership;
65 MachineBasicBlock::iterator TailStartPos;
67 SameTailElt(MPIterator mp, MachineBasicBlock::iterator tsp) in SameTailElt()
76 MachineBasicBlock::iterator getTailStartPos() const { in getTailStartPos()
82 MachineBasicBlock *getBlock() const { in getBlock()
[all …]
DMachineBasicBlock.cpp41 MachineBasicBlock::MachineBasicBlock(MachineFunction &MF, const BasicBlock *B) in MachineBasicBlock() function in MachineBasicBlock
46 MachineBasicBlock::~MachineBasicBlock() { in ~MachineBasicBlock()
50 MCSymbol *MachineBasicBlock::getSymbol() const { in getSymbol()
65 raw_ostream &llvm::operator<<(raw_ostream &OS, const MachineBasicBlock &MBB) { in operator <<()
77 void ilist_traits<MachineBasicBlock>::addNodeToList(MachineBasicBlock *N) { in addNodeToList()
83 for (MachineBasicBlock::instr_iterator in addNodeToList()
88 void ilist_traits<MachineBasicBlock>::removeNodeFromList(MachineBasicBlock *N) { in removeNodeFromList()
140 MachineBasicBlock::iterator MachineBasicBlock::getFirstNonPHI() { in getFirstNonPHI()
149 MachineBasicBlock::iterator
150 MachineBasicBlock::SkipPHIsAndLabels(MachineBasicBlock::iterator I) { in SkipPHIsAndLabels()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DBranchFolding.h35 MachineBasicBlock *Block;
37 MergePotentialsElt(unsigned h, MachineBasicBlock *b) in MergePotentialsElt()
41 MachineBasicBlock *getBlock() const { return Block; } in getBlock()
43 void setBlock(MachineBasicBlock *MBB) { in setBlock()
51 SmallPtrSet<const MachineBasicBlock*, 2> TriedMerging;
55 MachineBasicBlock::iterator TailStartPos;
57 SameTailElt(MPIterator mp, MachineBasicBlock::iterator tsp) in SameTailElt()
66 MachineBasicBlock::iterator getTailStartPos() const { in getTailStartPos()
72 MachineBasicBlock *getBlock() const { in getBlock()
79 void setBlock(MachineBasicBlock *MBB) { in setBlock()
[all …]
DMachineBasicBlock.cpp36 MachineBasicBlock::MachineBasicBlock(MachineFunction &mf, const BasicBlock *bb) in MachineBasicBlock() function in MachineBasicBlock
42 MachineBasicBlock::~MachineBasicBlock() { in ~MachineBasicBlock()
48 MCSymbol *MachineBasicBlock::getSymbol() const { in getSymbol()
58 raw_ostream &llvm::operator<<(raw_ostream &OS, const MachineBasicBlock &MBB) { in operator <<()
70 void ilist_traits<MachineBasicBlock>::addNodeToList(MachineBasicBlock *N) { in addNodeToList()
76 for (MachineBasicBlock::iterator I = N->begin(), E = N->end(); I != E; ++I) in addNodeToList()
82 void ilist_traits<MachineBasicBlock>::removeNodeFromList(MachineBasicBlock *N) { in removeNodeFromList()
123 MachineBasicBlock::iterator first, in transferNodesFromList()
124 MachineBasicBlock::iterator last) { in transferNodesFromList()
142 MachineBasicBlock::iterator MachineBasicBlock::getFirstNonPHI() { in getFirstNonPHI()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DMachineDominators.h32 inline void DominatorTreeBase<MachineBasicBlock, false>::addRoot( in addRoot()
33 MachineBasicBlock *MBB) { in addRoot()
37 extern template class DomTreeNodeBase<MachineBasicBlock>;
38 extern template class DominatorTreeBase<MachineBasicBlock, false>; // DomTree
39 extern template class DominatorTreeBase<MachineBasicBlock, true>; // PostDomTree
41 using MachineDomTreeNode = DomTreeNodeBase<MachineBasicBlock>;
51 MachineBasicBlock *FromBB;
52 MachineBasicBlock *ToBB;
53 MachineBasicBlock *NewBB;
67 mutable SmallSet<MachineBasicBlock *, 32> NewBBs;
[all …]
DTailDuplicator.h28 class MachineBasicBlock; variable
53 using AvailableValsTy = std::vector<std::pair<MachineBasicBlock *, unsigned>>;
72 static bool isSimpleBB(MachineBasicBlock *TailBB);
73 bool shouldTailDuplicate(bool IsSimple, MachineBasicBlock &TailBB);
76 bool canTailDuplicate(MachineBasicBlock *TailBB, MachineBasicBlock *PredBB);
85 bool IsSimple, MachineBasicBlock *MBB,
86 MachineBasicBlock *ForcedLayoutPred,
87 SmallVectorImpl<MachineBasicBlock*> *DuplicatedPreds = nullptr,
88 function_ref<void(MachineBasicBlock *)> *RemovalCallback = nullptr);
94 MachineBasicBlock *BB);
[all …]
DMachineBasicBlock.h51 friend class MachineBasicBlock; // Set by the owning MachineBasicBlock.
53 MachineBasicBlock *Parent;
66 class MachineBasicBlock
67 : public ilist_node_with_parent<MachineBasicBlock, MachineFunction> {
90 std::vector<MachineBasicBlock *> Predecessors;
91 std::vector<MachineBasicBlock *> Successors;
134 MachineBasicBlock() = default;
136 explicit MachineBasicBlock(MachineFunction &MF, const BasicBlock *BB);
138 ~MachineBasicBlock();
222 static Instructions MachineBasicBlock::*getSublistAccess(MachineInstr *) {
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DBranchFolding.h58 MachineBasicBlock *Block;
61 MergePotentialsElt(unsigned h, MachineBasicBlock *b) in MergePotentialsElt()
65 MachineBasicBlock *getBlock() const { return Block; } in getBlock()
67 void setBlock(MachineBasicBlock *MBB) { in setBlock()
77 SmallPtrSet<const MachineBasicBlock*, 2> TriedMerging;
78 DenseMap<const MachineBasicBlock *, int> EHScopeMembership;
82 MachineBasicBlock::iterator TailStartPos;
85 SameTailElt(MPIterator mp, MachineBasicBlock::iterator tsp) in SameTailElt()
96 MachineBasicBlock::iterator getTailStartPos() const { in getTailStartPos()
104 MachineBasicBlock *getBlock() const { in getBlock()
[all …]
DMachineBasicBlock.cpp43 MachineBasicBlock::MachineBasicBlock(MachineFunction &MF, const BasicBlock *B) in MachineBasicBlock() function in MachineBasicBlock
50 MachineBasicBlock::~MachineBasicBlock() { in ~MachineBasicBlock()
54 MCSymbol *MachineBasicBlock::getSymbol() const { in getSymbol()
69 raw_ostream &llvm::operator<<(raw_ostream &OS, const MachineBasicBlock &MBB) { in operator <<()
74 Printable llvm::printMBBReference(const MachineBasicBlock &MBB) { in printMBBReference()
85 void ilist_callback_traits<MachineBasicBlock>::addNodeToList( in addNodeToList()
86 MachineBasicBlock *N) { in addNodeToList()
92 for (MachineBasicBlock::instr_iterator in addNodeToList()
97 void ilist_callback_traits<MachineBasicBlock>::removeNodeFromList( in removeNodeFromList()
98 MachineBasicBlock *N) { in removeNodeFromList()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/
DMipsSEISelLowering.h23 class MachineBasicBlock; variable
52 MachineBasicBlock *
54 MachineBasicBlock *MBB) const override;
90 MachineBasicBlock *emitBPOSGE32(MachineInstr &MI,
91 MachineBasicBlock *BB) const;
92 MachineBasicBlock *emitMSACBranchPseudo(MachineInstr &MI,
93 MachineBasicBlock *BB,
96 MachineBasicBlock *emitCOPY_FW(MachineInstr &MI,
97 MachineBasicBlock *BB) const;
99 MachineBasicBlock *emitCOPY_FD(MachineInstr &MI,
[all …]
DMipsSEInstrInfo.h46 void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
53 void storeRegToStack(MachineBasicBlock &MBB,
54 MachineBasicBlock::iterator MI,
60 void loadRegFromStack(MachineBasicBlock &MBB,
61 MachineBasicBlock::iterator MI,
72 void adjustStackPtr(unsigned SP, int64_t Amount, MachineBasicBlock &MBB,
73 MachineBasicBlock::iterator I) const override;
78 unsigned loadImmediate(int64_t Imm, MachineBasicBlock &MBB,
79 MachineBasicBlock::iterator II, const DebugLoc &DL,
85 void expandRetRA(MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const;
[all …]
DMipsInstrInfo.h64 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
65 MachineBasicBlock *&FBB,
69 unsigned removeBranch(MachineBasicBlock &MBB,
72 unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
73 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
80 BranchType analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
81 MachineBasicBlock *&FBB,
87 unsigned getEquivalentCompactForm(const MachineBasicBlock::iterator I) const;
100 void insertNoop(MachineBasicBlock &MBB,
101 MachineBasicBlock::iterator MI) const override;
[all …]
/external/llvm/lib/Target/Mips/
DMipsSEInstrInfo.h46 void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
50 void storeRegToStack(MachineBasicBlock &MBB,
51 MachineBasicBlock::iterator MI,
57 void loadRegFromStack(MachineBasicBlock &MBB,
58 MachineBasicBlock::iterator MI,
69 void adjustStackPtr(unsigned SP, int64_t Amount, MachineBasicBlock &MBB,
70 MachineBasicBlock::iterator I) const override;
75 unsigned loadImmediate(int64_t Imm, MachineBasicBlock &MBB,
76 MachineBasicBlock::iterator II, const DebugLoc &DL,
82 void expandRetRA(MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const;
[all …]
DMipsInstrInfo.h53 bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
54 MachineBasicBlock *&FBB,
58 unsigned RemoveBranch(MachineBasicBlock &MBB) const override;
60 unsigned InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
61 MachineBasicBlock *FBB, ArrayRef<MachineOperand> Cond,
67 BranchType analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB,
68 MachineBasicBlock *&FBB,
74 unsigned getEquivalentCompactForm(const MachineBasicBlock::iterator I) const;
83 void insertNoop(MachineBasicBlock &MBB,
84 MachineBasicBlock::iterator MI) const override;
[all …]
DMips16InstrInfo.h46 void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
50 void storeRegToStack(MachineBasicBlock &MBB,
51 MachineBasicBlock::iterator MBBI,
57 void loadRegFromStack(MachineBasicBlock &MBB,
58 MachineBasicBlock::iterator MBBI,
69 void makeFrame(unsigned SP, int64_t FrameSize, MachineBasicBlock &MBB,
70 MachineBasicBlock::iterator I) const;
73 void restoreFrame(unsigned SP, int64_t FrameSize, MachineBasicBlock &MBB,
74 MachineBasicBlock::iterator I) const;
78 void adjustStackPtr(unsigned SP, int64_t Amount, MachineBasicBlock &MBB,
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonFrameLowering.h30 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const
32 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const in emitEpilogue()
34 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, in spillCalleeSavedRegisters()
35 MachineBasicBlock::iterator MI, const std::vector<CalleeSavedInfo> &CSI, in spillCalleeSavedRegisters()
39 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB, in restoreCalleeSavedRegisters()
40 MachineBasicBlock::iterator MI, const std::vector<CalleeSavedInfo> &CSI, in restoreCalleeSavedRegisters()
45 MachineBasicBlock::iterator
46 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
47 MachineBasicBlock::iterator I) const override;
88 void insertPrologueInBlock(MachineBasicBlock &MBB, bool PrologueStubs) const;
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonFrameLowering.h39 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const
41 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const in emitEpilogue()
44 bool spillCalleeSavedRegisters(MachineBasicBlock &MBB, in spillCalleeSavedRegisters()
45 MachineBasicBlock::iterator MI, const std::vector<CalleeSavedInfo> &CSI, in spillCalleeSavedRegisters()
50 bool restoreCalleeSavedRegisters(MachineBasicBlock &MBB, in restoreCalleeSavedRegisters()
51 MachineBasicBlock::iterator MI, std::vector<CalleeSavedInfo> &CSI, in restoreCalleeSavedRegisters()
67 MachineBasicBlock::iterator
68 eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
69 MachineBasicBlock::iterator I) const override;
111 void insertPrologueInBlock(MachineBasicBlock &MBB, bool PrologueStubs) const;
[all …]
/external/llvm/include/llvm/CodeGen/
DMachineDominators.h28 inline void DominatorTreeBase<MachineBasicBlock>::addRoot(MachineBasicBlock* MBB) { in addRoot()
32 extern template class DomTreeNodeBase<MachineBasicBlock>;
33 extern template class DominatorTreeBase<MachineBasicBlock>;
35 typedef DomTreeNodeBase<MachineBasicBlock> MachineDomTreeNode;
45 MachineBasicBlock *FromBB;
46 MachineBasicBlock *ToBB;
47 MachineBasicBlock *NewBB;
60 mutable SmallSet<MachineBasicBlock *, 32> NewBBs;
71 DominatorTreeBase<MachineBasicBlock>* DT;
77 DominatorTreeBase<MachineBasicBlock> &getBase() { in getBase()
[all …]
DMachineBasicBlock.h47 friend class MachineBasicBlock;
48 MachineBasicBlock* Parent;
70 class MachineBasicBlock
71 : public ilist_node_with_parent<MachineBasicBlock, MachineFunction> {
93 std::vector<MachineBasicBlock *> Predecessors;
94 std::vector<MachineBasicBlock *> Successors;
130 MachineBasicBlock() {}
132 explicit MachineBasicBlock(MachineFunction &MF, const BasicBlock *BB);
134 ~MachineBasicBlock();
213 static Instructions MachineBasicBlock::*getSublistAccess(MachineInstr *) {
[all …]

12345678910>>...55