13 #ifndef LLVM_CODEGEN_GLOBALISEL_CSEMIRBUILDER_H 14 #define LLVM_CODEGEN_GLOBALISEL_CSEMIRBUILDER_H 52 void *&NodeInsertPos);
55 bool canPerformCSEForOpc(
unsigned Opc)
const;
60 for (
const DstOp &Op : Ops)
67 for (
const SrcOp &Op : Ops)
MachineIRBuilder()=default
Some constructors for easy use.
virtual MachineInstrBuilder buildConstant(const DstOp &Res, const ConstantInt &Val)
Build and insert Res = G_CONSTANT Val.
This class represents lattice values for constants.
MachineInstrBuilder buildFConstant(const DstOp &Res, const ConstantFP &Val) override
Build and insert Res = G_FCONSTANT Val.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Flag
These should be considered private to the implementation of the MCInstrDesc class.
FoldingSetNodeID - This class is used to gather all the unique data bits of a node.
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
ConstantFP - Floating Point Values [float, double].
Helper class to build MachineInstr.
This is the shared class of boolean and integer constants.
virtual MachineInstrBuilder buildFConstant(const DstOp &Res, const ConstantFP &Val)
Build and insert Res = G_FCONSTANT Val.
This file declares the MachineIRBuilder class.
Defines a builder that does CSE of MachineInstructions using GISelCSEInfo.
MachineInstrBuilder buildConstant(const DstOp &Res, const ConstantInt &Val) override
Build and insert Res = G_CONSTANT Val.
MachineInstrBuilder buildInstr(unsigned Opc, ArrayRef< DstOp > DstOps, ArrayRef< SrcOp > SrcOps, Optional< unsigned > Flag=None) override