|
OpenASIP 2.2
|
#include "CompilerWarnings.hh"#include "ConstantTransformer.hh"#include "MachineInfo.hh"#include "TCETargetMachine.hh"#include "OperationPool.hh"#include "Operation.hh"#include "Operand.hh"#include <llvm/CodeGen/MachineFunction.h>#include <llvm/CodeGen/MachineBasicBlock.h>#include <llvm/MC/MCInstrInfo.h>#include <llvm/CodeGen/TargetInstrInfo.h>#include <llvm/CodeGen/TargetSubtargetInfo.h>#include <llvm/CodeGen/TargetOpcodes.h>#include <llvm/CodeGen/MachineInstrBuilder.h>#include <sstream>
Go to the source code of this file.
Macros | |
| #define | sub "SUB" |
Functions | |
| unsigned | osalInputIndex (const Operation &operation, const llvm::MachineInstr &instr, unsigned operandId) |
Implementation of ConstantTransformer class.
Definition in file ConstantTransformer.cc.
| #define sub "SUB" |
Definition at line 63 of file ConstantTransformer.cc.
| unsigned osalInputIndex | ( | const Operation & | operation, |
| const llvm::MachineInstr & | instr, | ||
| unsigned | operandId | ||
| ) |
In case the given operandId is an input operand in the MachineInstr, returns the corresponding OSAL operand id (starting from 1), 0 otherwise.
Definition at line 78 of file ConstantTransformer.cc.
References Operand::isAddress(), Operation::isBaseOffsetMemOperation(), Operation::operand(), and llvm::TCETargetMachine::operationName().
Referenced by ConstantTransformer::runOnMachineFunction().
