class Use

Declaration

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

Declared at: llvm/include/llvm/IR/Use.h:55

Method Overview

  • public Use(const llvm::Use & U)
  • public llvm::Value * get() const
  • public llvm::Use * getNext() const
  • public unsigned int getOperandNo() const
  • public llvm::User * getUser() const
  • public static llvm::Use * initTags(llvm::Use * Start, llvm::Use * Stop)
  • public llvm::Value * operator llvm::Value *() const
  • public inline void set(llvm::Value * Val)
  • public void swap(llvm::Use & RHS)
  • public static void zap(llvm::Use * Start, const llvm::Use * Stop, bool del = false)

Methods

Use(const llvm::Use& U)

Declared at: llvm/include/llvm/IR/Use.h:57

Parameters

const llvm::Use& U

llvm::Value* get() const

Declared at: llvm/include/llvm/IR/Use.h:107

llvm::Use* getNext() const

Declared at: llvm/include/llvm/IR/Use.h:123

unsigned int getOperandNo() const

Description

Return the operand # of this use in its User.

Declared at: llvm/include/llvm/IR/Use.h:126

llvm::User* getUser() const

Description

Returns the User that contains this Use. For an instruction operand, for example, this will return the instruction.

Declared at: llvm/include/llvm/IR/Use.h:113

static llvm::Use* initTags(llvm::Use* Start,
                           llvm::Use* Stop)

Description

Initializes the waymarking tags on an array of Uses. This sets up the array of Uses such that getUser() can find the User from any of those Uses.

Declared at: llvm/include/llvm/IR/Use.h:132

Parameters

llvm::Use* Start
llvm::Use* Stop

llvm::Value* operator llvm::Value*() const

Declared at: llvm/include/llvm/IR/Use.h:106

inline void set(llvm::Value* Val)

Declared at: llvm/include/llvm/IR/Use.h:115

Parameters

llvm::Value* Val

void swap(llvm::Use& RHS)

Description

Provide a fast substitute to std::swap <Use > that also works with less standard-compliant compilers

Declared at: llvm/include/llvm/IR/Use.h:61

Parameters

llvm::Use& RHS

static void zap(llvm::Use* Start,
                const llvm::Use* Stop,
                bool del = false)

Description

Destroys Use operands when the number of operands of a User changes.

Declared at: llvm/include/llvm/IR/Use.h:136

Parameters

llvm::Use* Start
const llvm::Use* Stop
bool del = false