LLVM  3.7.0
Macros | Functions | Variables
SILowerI1Copies.cpp File Reference
#include "AMDGPU.h"
#include "AMDGPUSubtarget.h"
#include "SIInstrInfo.h"
#include "llvm/CodeGen/LiveIntervalAnalysis.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Function.h"
#include "llvm/Support/Debug.h"
#include "llvm/Target/TargetMachine.h"
Include dependency graph for SILowerI1Copies.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "si-i1-copies"
 i1 values are usually inserted by the CFG Structurize pass and they are unique in that they can be copied from VALU to SALU registers. More...
 

Functions

 INITIALIZE_PASS_BEGIN (SILowerI1Copies, DEBUG_TYPE,"SI Lower i1 Copies", false, false) INITIALIZE_PASS_END(SILowerI1Copies
 

Variables

 DEBUG_TYPE
 
SI Lower i1 Copies
 
SI Lower i1 false
 

Macro Definition Documentation

#define DEBUG_TYPE   "si-i1-copies"

i1 values are usually inserted by the CFG Structurize pass and they are unique in that they can be copied from VALU to SALU registers.

This is not possible for any other value type. Since there are no MOV instructions for i1, we to use V_CMP_* and V_CNDMASK to move the i1.

Definition at line 16 of file SILowerI1Copies.cpp.

Function Documentation

INITIALIZE_PASS_BEGIN ( SILowerI1Copies  ,
DEBUG_TYPE  ,
"SI Lower i1 Copies ,
false  ,
false   
)

Variable Documentation

SI Lower i1 Copies

Definition at line 61 of file SILowerI1Copies.cpp.

DEBUG_TYPE

Definition at line 61 of file SILowerI1Copies.cpp.

SI Lower i1 false

Definition at line 61 of file SILowerI1Copies.cpp.