|
LLVM
3.7.0
|
#include "InstrEmitter.h"#include "SDNodeDbgValue.h"#include "llvm/ADT/Statistic.h"#include "llvm/CodeGen/MachineConstantPool.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineInstrBuilder.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/CodeGen/StackMaps.h"#include "llvm/IR/DataLayout.h"#include "llvm/Support/Debug.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/MathExtras.h"#include "llvm/Target/TargetInstrInfo.h"#include "llvm/Target/TargetLowering.h"#include "llvm/Target/TargetSubtargetInfo.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "instr-emitter" |
Functions | |
| static unsigned | countOperands (SDNode *Node, unsigned NumExpUses, unsigned &NumImpUses) |
| countOperands - The inputs to target nodes have any actual inputs first, followed by an optional chain operand, then an optional glue operand. More... | |
Variables | |
| const unsigned | MinRCSize = 4 |
| MinRCSize - Smallest register class we allow when constraining virtual registers. More... | |
| #define DEBUG_TYPE "instr-emitter" |
Definition at line 33 of file InstrEmitter.cpp.
countOperands - The inputs to target nodes have any actual inputs first, followed by an optional chain operand, then an optional glue operand.
Compute the number of actual operands that will go into the resulting MachineInstr.
Also count physreg RegisterSDNode and RegisterMaskSDNode operands preceding the chain and glue. These operands may be implicit on the machine instr.
Definition at line 60 of file InstrEmitter.cpp.
References llvm::SDNode::getNumOperands(), llvm::SDNode::getOperand(), llvm::SDValue::getValueType(), llvm::MVT::Glue, I, llvm::TargetRegisterInfo::isPhysicalRegister(), N, llvm::MVT::Other, and llvm::NVPTX::PTXCvtMode::RN.
MinRCSize - Smallest register class we allow when constraining virtual registers.
If satisfying all register class constraints would require using a smaller register class, emit a COPY to a new virtual register instead.
Definition at line 39 of file InstrEmitter.cpp.
1.8.6