LLVM API Documentation

FoldSetCCLogical Struct Reference

Collaboration diagram for FoldSetCCLogical:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FoldSetCCLogical (InstCombiner &ic, SetCondInst *SCI)
bool shouldApply (Value *V) const
Instructionapply (BinaryOperator &Log) const

Public Attributes

InstCombiner & IC
ValueLHS
ValueRHS

Detailed Description

Definition at line 2227 of file InstructionCombining.cpp.


Constructor & Destructor Documentation

FoldSetCCLogical::FoldSetCCLogical ( InstCombiner &  ic,
SetCondInst SCI 
) [inline]

Definition at line 2230 of file InstructionCombining.cpp.


Member Function Documentation

bool FoldSetCCLogical::shouldApply ( Value V  )  const [inline]

Definition at line 2232 of file InstructionCombining.cpp.

References LHS, and V.

Instruction* FoldSetCCLogical::apply ( BinaryOperator Log  )  const [inline]

Definition at line 2238 of file InstructionCombining.cpp.

References llvm::BinaryOperator::getOpcode(), llvm::BinaryOperator::getOperand(), getSetCCValue(), getSetCondCode(), IC, LHS, and llvm::BinaryOperator::swapOperands().


Member Data Documentation

InstCombiner& FoldSetCCLogical::IC

Definition at line 2228 of file InstructionCombining.cpp.

Referenced by apply().

Value* FoldSetCCLogical::LHS

Definition at line 2229 of file InstructionCombining.cpp.

Referenced by apply(), and shouldApply().

Value * FoldSetCCLogical::RHS

Definition at line 2229 of file InstructionCombining.cpp.


The documentation for this struct was generated from the following file: