class SCEVExpanderCleaner

Declaration

class SCEVExpanderCleaner { /* full declaration omitted */ };

Description

Helper to remove instructions inserted during SCEV expansion, unless they are marked as used.

Declared at: llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h:504

Member Variables

private llvm::SCEVExpander& Expander
private bool ResultUsed
Indicates whether the result of the expansion is used. If false, the instructions added during expansion are removed.

Method Overview

Methods

SCEVExpanderCleaner(llvm::SCEVExpander& Expander)

Declared at: llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h:512

Parameters

llvm::SCEVExpander& Expander

void cleanup()

Declared at: llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h:520

void markResultUsed()

Description

Indicate that the result of the expansion is used.

Declared at: llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h:518

~SCEVExpanderCleaner()

Declared at: llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h:515