struct InstrInfoQuery

Declaration

struct InstrInfoQuery { /* full declaration omitted */ };

Description

InstrInfoQuery provides an interface to query additional information for instructions like metadata or keywords like nsw, which provides conservative results if the users specified it is safe to use.

Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:63

Member Variables

public bool UseInstrInfo = true

Method Overview

Methods

InstrInfoQuery(bool UMD)

Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:64

Parameters

bool UMD

InstrInfoQuery()

Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:65

llvm::MDNode* getMetadata(
    const llvm::Instruction* I,
    unsigned int KindID) const

Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:68

Parameters

const llvm::Instruction* I
unsigned int KindID

template <class InstT>
bool hasNoSignedWrap(const InstT* Op) const

Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:80

Templates

InstT

Parameters

const InstT* Op

template <class InstT>
bool hasNoUnsignedWrap(const InstT* Op) const

Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:74

Templates

InstT

Parameters

const InstT* Op

bool isExact(const llvm::BinaryOperator* Op) const

Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:86

Parameters

const llvm::BinaryOperator* Op