blob: cec867f9e6b183dca925dd14b1f2257dcb968741 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 | //===-------------- llvm/CodeGen/ProcessImplicitDefs.h ----------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CODEGEN_PROCESSIMPLICITDEFS_H
#define LLVM_CODEGEN_PROCESSIMPLICITDEFS_H
#include "llvm/CodeGen/MachineFunctionPass.h"
namespace llvm {
  class MachineInstr;
  class TargetInstrInfo;
  /// Process IMPLICIT_DEF instructions and make sure there is one implicit_def
  /// for each use. Add isUndef marker to implicit_def defs and their uses.
  class ProcessImplicitDefs : public MachineFunctionPass {
  private:
    bool CanTurnIntoImplicitDef(MachineInstr *MI, unsigned Reg,
                                unsigned OpIdx, const TargetInstrInfo *tii_);
  public:
    static char ID;
    ProcessImplicitDefs() : MachineFunctionPass(&ID) {}
    virtual void getAnalysisUsage(AnalysisUsage &au) const;
    virtual bool runOnMachineFunction(MachineFunction &fn);
  };
}
#endif // LLVM_CODEGEN_PROCESSIMPLICITDEFS_H
 |