Takes a CSEConfigBase object that defines what opcodes get CSEd. If CSEConfig is already set, and the CSE Analysis has been preserved, it will not use the new CSEOpt(use Recompute to force using the new CSEOpt).

Synopsis

Declared in <llvm/CodeGen/GlobalISel/CSEInfo.h>

GISelCSEInfo&
get(std::unique_ptr<CSEConfigBase> CSEOpt);

Return Value

The CSE Analysis object. This installs itself as a delegate to the MachineFunction to track new instructions as well as deletions. It however will not be able to track instruction mutations. In such cases, recordNewInstruction should be called (for eg inside MachineIRBuilder::recordInsertion). Also because of how just the instruction can be inserted without adding any operands to the instruction, instructions are uniqued and inserted lazily. CSEInfo should assert when trying to enter an incomplete instruction into the CSEMap. There is Opcode level granularity on which instructions can be CSE'd and for now, only Generic instructions are CSEable.

Created with MrDocs