LLVM 24.0.0git
DelayedIRBuilder Struct Reference

If the IRBuilder is created via LLVMCreateBuilderInContext(), the actual creation is delayed until the insertion point is first set using LLVMPositionBuilder() or similar, at which point we can use the Module of the insertion point. More...

Public Member Functions

 DelayedIRBuilder ()=default
 DelayedIRBuilder (Module &M)
void initUsingInsertionBlock (BasicBlock *BB)

Public Attributes

std::optional< IRBuilder<> > Builder

Detailed Description

If the IRBuilder is created via LLVMCreateBuilderInContext(), the actual creation is delayed until the insertion point is first set using LLVMPositionBuilder() or similar, at which point we can use the Module of the insertion point.

Definition at line 3480 of file Core.cpp.

Constructor & Destructor Documentation

◆ DelayedIRBuilder() [1/2]

DelayedIRBuilder::DelayedIRBuilder ( )
default

◆ DelayedIRBuilder() [2/2]

DelayedIRBuilder::DelayedIRBuilder ( Module & M)
inline

Definition at line 3484 of file Core.cpp.

References Builder.

Member Function Documentation

◆ initUsingInsertionBlock()

void DelayedIRBuilder::initUsingInsertionBlock ( BasicBlock * BB)
inline

Definition at line 3486 of file Core.cpp.

References Builder, F, llvm::BasicBlock::getParent(), and llvm::reportFatalUsageError().

Member Data Documentation

◆ Builder

std::optional<IRBuilder<> > DelayedIRBuilder::Builder

Definition at line 3481 of file Core.cpp.

Referenced by DelayedIRBuilder(), and initUsingInsertionBlock().


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