Home | History | Annotate | Download | only in Analysis

Lines Matching full:instruction

12 // to approximate the cost of any IR instruction when lowered to machine
43 /// Returns the expected cost of the instruction.
47 unsigned getInstructionCost(const Instruction *I) const;
108 unsigned CostModelAnalysis::getInstructionCost(const Instruction *I) const {
113 case Instruction::GetElementPtr:{
118 case Instruction::Ret:
119 case Instruction::PHI:
120 case Instruction::Br: {
123 case Instruction::Add:
124 case Instruction::FAdd:
125 case Instruction::Sub:
126 case Instruction::FSub:
127 case Instruction::Mul:
128 case Instruction::FMul:
129 case Instruction::UDiv:
130 case Instruction::SDiv:
131 case Instruction::FDiv:
132 case Instruction::URem:
133 case Instruction::SRem:
134 case Instruction::FRem:
135 case Instruction::Shl:
136 case Instruction::LShr:
137 case Instruction::AShr:
138 case Instruction::And:
139 case Instruction::Or:
140 case Instruction::Xor: {
148 case Instruction::Select: {
153 case Instruction::ICmp:
154 case Instruction::FCmp: {
158 case Instruction::Store: {
165 case Instruction::Load: {
171 case Instruction::ZExt:
172 case Instruction::SExt:
173 case Instruction::FPToUI:
174 case Instruction::FPToSI:
175 case Instruction::FPExt:
176 case Instruction::PtrToInt:
177 case Instruction::IntToPtr:
178 case Instruction::SIToFP:
179 case Instruction::UIToFP:
180 case Instruction::Trunc:
181 case Instruction::FPTrunc:
182 case Instruction::BitCast: {
186 case Instruction::ExtractElement: {
195 case Instruction::InsertElement: {
204 case Instruction::ShuffleVector: {
215 case Instruction::Call:
226 // We don't have any information on this instruction.
237 Instruction *Inst = it;
244 OS << " for instruction: "<< *Inst << "\n";