class CompareConstantExpr

Declaration

class CompareConstantExpr : public ConstantExpr { /* full declaration omitted */ };

Description

A constant value that is initialized with an expression using other constant values. This class uses the standard Instruction opcodes to define the various constant expressions. The Opcode field for the ConstantExpr class is maintained in the Value::SubclassData field.

Declared at: llvm/lib/IR/ConstantsContext.h:248

Inherits from: ConstantExpr

Member Variables

public unsigned short predicate

Inherited from Value:

protected SubclassOptionalData
protected NumUserOperands
protected IsUsedByMD
protected HasName
protected HasMetadata
protected HasHungOffUses
protected HasDescriptor
public static MaxAlignmentExponent = 32
public static MaximumAlignment = 1ULL << MaxAlignmentExponent

Method Overview

  • public CompareConstantExpr(llvm::Type * ty, Instruction::OtherOps opc, unsigned short pred, llvm::Constant * LHS, llvm::Constant * RHS)
  • public static bool classof(const llvm::ConstantExpr * CE)
  • public static bool classof(const llvm::Value * V)

Inherited from ConstantExpr:

Inherited from Constant:

Inherited from User:

Inherited from Value:

Methods

CompareConstantExpr(llvm::Type* ty,
                    Instruction::OtherOps opc,
                    unsigned short pred,
                    llvm::Constant* LHS,
                    llvm::Constant* RHS)

Declared at: llvm/lib/IR/ConstantsContext.h:251

Parameters

llvm::Type* ty
Instruction::OtherOps opc
unsigned short pred
llvm::Constant* LHS
llvm::Constant* RHS

static bool classof(const llvm::ConstantExpr* CE)

Declared at: llvm/lib/IR/ConstantsContext.h:265

Parameters

const llvm::ConstantExpr* CE

static bool classof(const llvm::Value* V)

Declared at: llvm/lib/IR/ConstantsContext.h:269

Parameters

const llvm::Value* V