LLVM API Documentation

Public Member Functions | Static Public Member Functions | Protected Member Functions
llvm::FenceInst Class Reference

#include <Instructions.h>

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

List of all members.

Public Member Functions

void * operator new (size_t s)
 FenceInst (LLVMContext &C, AtomicOrdering Ordering, SynchronizationScope SynchScope=CrossThread, Instruction *InsertBefore=0)
 FenceInst (LLVMContext &C, AtomicOrdering Ordering, SynchronizationScope SynchScope, BasicBlock *InsertAtEnd)
AtomicOrdering getOrdering () const
 Returns the ordering effect of this fence.
void setOrdering (AtomicOrdering Ordering)
SynchronizationScope getSynchScope () const
void setSynchScope (SynchronizationScope xthread)

Static Public Member Functions

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

Protected Member Functions

virtual FenceInstclone_impl () const

Detailed Description

FenceInst - an instruction for ordering other memory operations

Definition at line 384 of file Instructions.h.


Constructor & Destructor Documentation

FenceInst::FenceInst ( LLVMContext C,
AtomicOrdering  Ordering,
SynchronizationScope  SynchScope = CrossThread,
Instruction InsertBefore = 0 
)

Definition at line 1312 of file Instructions.cpp.

References setOrdering(), and setSynchScope().

Referenced by clone_impl().

FenceInst::FenceInst ( LLVMContext C,
AtomicOrdering  Ordering,
SynchronizationScope  SynchScope,
BasicBlock InsertAtEnd 
)

Definition at line 1320 of file Instructions.cpp.

References setOrdering(), and setSynchScope().


Member Function Documentation

static bool llvm::FenceInst::classof ( const Instruction I) [inline, static]

Definition at line 429 of file Instructions.h.

References llvm::Instruction::getOpcode().

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

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

Reimplemented from llvm::Instruction.

Definition at line 432 of file Instructions.h.

FenceInst * FenceInst::clone_impl ( ) const [protected, virtual]
AtomicOrdering llvm::FenceInst::getOrdering ( ) const [inline]

Returns the ordering effect of this fence.

Definition at line 405 of file Instructions.h.

Referenced by clone_impl().

SynchronizationScope llvm::FenceInst::getSynchScope ( ) const [inline]

Definition at line 416 of file Instructions.h.

Referenced by clone_impl().

void* llvm::FenceInst::operator new ( size_t  s) [inline]

Reimplemented from llvm::User.

Definition at line 391 of file Instructions.h.

void llvm::FenceInst::setOrdering ( AtomicOrdering  Ordering) [inline]

Set the ordering constraint on this fence. May only be Acquire, Release, AcquireRelease, or SequentiallyConsistent.

Definition at line 411 of file Instructions.h.

Referenced by FenceInst().

void llvm::FenceInst::setSynchScope ( SynchronizationScope  xthread) [inline]

Specify whether this fence orders other operations with respect to all concurrently executing threads, or only with respect to signal handlers executing in the same thread.

Definition at line 423 of file Instructions.h.

Referenced by FenceInst().


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