class FenceInst

Declaration

class FenceInst : public Instruction { /* full declaration omitted */ };

Declared at: llvm/include/llvm/IR/Instructions.h:471

Inherits from: Instruction

Member Variables

Inherited from Value:

protected SubclassOptionalData
protected NumUserOperands
protected IsUsedByMD
protected HasName
protected HasHungOffUses
protected HasDescriptor
public static MaxAlignmentExponent = 29
public static MaximumAlignment = 1U << MaxAlignmentExponent

Method Overview

  • public FenceInst(llvm::LLVMContext & C, llvm::AtomicOrdering Ordering, SyncScope::ID SSID = SyncScope::System, llvm::Instruction * InsertBefore = nullptr)
  • public FenceInst(llvm::LLVMContext & C, llvm::AtomicOrdering Ordering, SyncScope::ID SSID, llvm::BasicBlock * InsertAtEnd)
  • public static bool classof(const llvm::Instruction * I)
  • public static bool classof(const llvm::Value * V)
  • protected llvm::FenceInst * cloneImpl() const
  • public llvm::AtomicOrdering getOrdering() const
  • public SyncScope::ID getSyncScopeID() const
  • public void setOrdering(llvm::AtomicOrdering Ordering)
  • public void setSyncScopeID(SyncScope::ID SSID)

Inherited from Instruction:

Inherited from User:

Inherited from Value:

Methods

FenceInst(
    llvm::LLVMContext& C,
    llvm::AtomicOrdering Ordering,
    SyncScope::ID SSID = SyncScope::System,
    llvm::Instruction* InsertBefore = nullptr)

Declared at: llvm/include/llvm/IR/Instructions.h:483

Parameters

llvm::LLVMContext& C
llvm::AtomicOrdering Ordering
SyncScope::ID SSID = SyncScope::System
llvm::Instruction* InsertBefore = nullptr

FenceInst(llvm::LLVMContext& C,
          llvm::AtomicOrdering Ordering,
          SyncScope::ID SSID,
          llvm::BasicBlock* InsertAtEnd)

Declared at: llvm/include/llvm/IR/Instructions.h:486

Parameters

llvm::LLVMContext& C
llvm::AtomicOrdering Ordering
SyncScope::ID SSID
llvm::BasicBlock* InsertAtEnd

static bool classof(const llvm::Instruction* I)

Declared at: llvm/include/llvm/IR/Instructions.h:517

Parameters

const llvm::Instruction* I

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

Declared at: llvm/include/llvm/IR/Instructions.h:520

Parameters

const llvm::Value* V

llvm::FenceInst* cloneImpl() const

Declared at: llvm/include/llvm/IR/Instructions.h:478

llvm::AtomicOrdering getOrdering() const

Description

Returns the ordering constraint of this fence instruction.

Declared at: llvm/include/llvm/IR/Instructions.h:495

SyncScope::ID getSyncScopeID() const

Description

Returns the synchronization scope ID of this fence instruction.

Declared at: llvm/include/llvm/IR/Instructions.h:507

void setOrdering(llvm::AtomicOrdering Ordering)

Description

Sets the ordering constraint of this fence instruction. May only be Acquire, Release, AcquireRelease, or SequentiallyConsistent.

Declared at: llvm/include/llvm/IR/Instructions.h:501

Parameters

llvm::AtomicOrdering Ordering

void setSyncScopeID(SyncScope::ID SSID)

Description

Sets the synchronization scope ID of this fence instruction.

Declared at: llvm/include/llvm/IR/Instructions.h:512

Parameters

SyncScope::ID SSID