LLVM  13.0.0git
Classes | Namespaces | Functions
InstructionCost.h File Reference
#include "llvm/ADT/Optional.h"
Include dependency graph for InstructionCost.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::InstructionCost
 

Namespaces

 llvm
 This class represents lattice values for constants.
 

Functions

InstructionCost llvm::operator+ (const InstructionCost &LHS, const InstructionCost &RHS)
 
InstructionCost llvm::operator- (const InstructionCost &LHS, const InstructionCost &RHS)
 
InstructionCost llvm::operator* (const InstructionCost &LHS, const InstructionCost &RHS)
 
InstructionCost llvm::operator/ (const InstructionCost &LHS, const InstructionCost &RHS)
 
raw_ostream & llvm::operator<< (raw_ostream &OS, const InstructionCost &V)
 

Detailed Description

This file defines an InstructionCost class that is used when calculating the cost of an instruction, or a group of instructions. In addition to a numeric value representing the cost the class also contains a state that can be used to encode particular properties, i.e. a cost being invalid or unknown.

Definition in file InstructionCost.h.