LLVM API Documentation

llvm::VICmpInst Class Reference

Represents a vector integer comparison operator. More...

#include <Instructions.h>

Inheritance diagram for llvm::VICmpInst:
[legend]
Collaboration diagram for llvm::VICmpInst:
[legend]

List of all members.

Public Member Functions

 VICmpInst (Predicate pred, Value *LHS, Value *RHS, const std::string &NameStr="", Instruction *InsertBefore=0)
 Constructor with insert-before-instruction semantics.
 VICmpInst (Predicate pred, Value *LHS, Value *RHS, const std::string &NameStr, BasicBlock *InsertAtEnd)
 Constructor with insert-at-block-end semantics.
Predicate getPredicate () const
 Return the predicate for this instruction.
virtual VICmpInst * clone () const

Static Public Member Functions

static bool classof (const VICmpInst *)
static bool classof (const Instruction *I)
 Methods for support type inquiry through isa, cast, and dyn_cast:.
static bool classof (const Value *V)


Detailed Description

Represents a vector integer comparison operator.

This instruction compares its operands according to the predicate given to the constructor. It only operates on vectors of integers. The operands must be identical types.

Definition at line 871 of file Instructions.h.


Constructor & Destructor Documentation

llvm::VICmpInst::VICmpInst ( Predicate  pred,
Value *  LHS,
Value *  RHS,
const std::string &  NameStr = "",
Instruction *  InsertBefore = 0 
) [inline]

Constructor with insert-before-instruction semantics.

Parameters:
pred  The predicate to use for the comparison
LHS  The left-hand-side of the expression
RHS  The right-hand-side of the expression
NameStr  Name of the instruction
InsertBefore  Where to insert

Definition at line 874 of file Instructions.h.

References llvm::CmpInst::FIRST_ICMP_PREDICATE, llvm::Intrinsic::getType(), and llvm::CmpInst::LAST_ICMP_PREDICATE.

Referenced by clone().

llvm::VICmpInst::VICmpInst ( Predicate  pred,
Value *  LHS,
Value *  RHS,
const std::string &  NameStr,
BasicBlock *  InsertAtEnd 
) [inline]

Constructor with insert-at-block-end semantics.

Parameters:
pred  The predicate to use for the comparison
LHS  The left-hand-side of the expression
RHS  The right-hand-side of the expression
NameStr  Name of the instruction
InsertAtEnd  Block to insert into.

Definition at line 890 of file Instructions.h.

References llvm::CmpInst::FIRST_ICMP_PREDICATE, llvm::Intrinsic::getType(), and llvm::CmpInst::LAST_ICMP_PREDICATE.


Member Function Documentation

Predicate llvm::VICmpInst::getPredicate (  )  const [inline]

Return the predicate for this instruction.

Reimplemented from llvm::CmpInst.

Definition at line 906 of file Instructions.h.

References Predicate.

Referenced by clone().

VICmpInst * VICmpInst::clone (  )  const [virtual]

clone() - Create a copy of 'this' instruction that is identical in all ways except the following: The instruction has no parent The instruction has no name

Implements llvm::Instruction.

Definition at line 2873 of file Instructions.cpp.

References getPredicate(), and VICmpInst().

static bool llvm::VICmpInst::classof ( const VICmpInst *   )  [inline, static]

Definition at line 911 of file Instructions.h.

static bool llvm::VICmpInst::classof ( const Instruction *   )  [inline, static]

Methods for support type inquiry through isa, cast, and dyn_cast:.

Reimplemented from llvm::CmpInst.

Definition at line 912 of file Instructions.h.

References llvm::Instruction::getOpcode(), and VICmp.

static bool llvm::VICmpInst::classof ( const Value *  V  )  [inline, static]

Reimplemented from llvm::CmpInst.

Definition at line 915 of file Instructions.h.


The documentation for this class was generated from the following files: