LLVM 22.0.0git
llvm::consthoist::RebasedConstantInfo Struct Reference

This represents a constant that has been rebased with respect to a base constant. More...

#include "llvm/Transforms/Scalar/ConstantHoisting.h"

Public Member Functions

 RebasedConstantInfo (ConstantUseListType &&Uses, Constant *Offset, Type *Ty=nullptr)

Public Attributes

ConstantUseListType Uses
ConstantOffset
TypeTy

Detailed Description

This represents a constant that has been rebased with respect to a base constant.

The difference to the base constant is recorded in Offset.

Definition at line 103 of file ConstantHoisting.h.

Constructor & Destructor Documentation

◆ RebasedConstantInfo()

llvm::consthoist::RebasedConstantInfo::RebasedConstantInfo ( ConstantUseListType && Uses,
Constant * Offset,
Type * Ty = nullptr )
inline

Definition at line 108 of file ConstantHoisting.h.

References llvm::move(), Offset, Ty, and Uses.

Member Data Documentation

◆ Offset

Constant* llvm::consthoist::RebasedConstantInfo::Offset

Definition at line 105 of file ConstantHoisting.h.

Referenced by RebasedConstantInfo().

◆ Ty

Type* llvm::consthoist::RebasedConstantInfo::Ty

Definition at line 106 of file ConstantHoisting.h.

Referenced by RebasedConstantInfo().

◆ Uses

ConstantUseListType llvm::consthoist::RebasedConstantInfo::Uses

Definition at line 104 of file ConstantHoisting.h.

Referenced by RebasedConstantInfo().


The documentation for this struct was generated from the following file: