LLVM API Documentation

llvm::VICmpInst Class Reference

Represents a vector integer comparison operator. More...

#include <Instructions.h>

Inheritance diagram for llvm::VICmpInst:

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

Collaboration graph
[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 VICmpInstclone () 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 864 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 867 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 883 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 899 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 2899 of file Instructions.cpp.

References getPredicate(), and VICmpInst().

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

Definition at line 904 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 905 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 908 of file Instructions.h.


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.