🌐
LLVM
llvm.org › doxygen › classllvm_1_1Function.html
LLVM: llvm::Function Class Reference
Referenced by llvm::ilist_node_with_parent< llvm::BasicBlock, llvm::Function >. Definition at line 791 of file Function.h. References const, and InstIterator. Definition at line 791 of file Function.h. Definition at line 93 of file Function.h. Definition at line 131 of file Function.h. References hasLazyArguments(), and TargetLibraryInfoImpl. Referenced by TargetLibraryInfoImpl. The documentation for this class was generated from the following files: include/llvm/IR/Function.h ·
🌐
LLVM
llvm.org › doxygen › classllvm_1_1FunctionType.html
LLVM: llvm::FunctionType Class Reference
Class to represent function types. Definition at line 105 of file DerivedTypes.h. Definition at line 128 of file DerivedTypes.h. Methods for support type inquiry through isa, cast, and dyn_cast. Definition at line 147 of file DerivedTypes.h. References llvm::Type::FunctionTyID, T, and llvm::Type::Type().
🌐
Hdoc
docs.hdoc.io › hdoc › llvm-project › rADBA2A8E0906EC47.html
class Function: LLVM/Clang 15.x documentation
This is an important base class in LLVM. It provides the common facilities of all constant values in an LLVM program. A constant is a value that is immutable at runtime. Functions are constants because their address is immutable. Same with global variables. All constants share the capabilities provided in this class.
🌐
LLVM
llvm.org › doxygen › classllvm_1_1Module.html
LLVM: llvm::Module Class Reference
Each module directly contains a list of globals variables, a list of functions, a list of libraries (or other modules) this module depends on, a symbol table, and various data about the target's characteristics. A module maintains a GlobalList object that is used to hold all constant references to global variables in the module. When a global variable is destroyed, it should have no entries in the GlobalList. The main container class for the LLVM Intermediate Representation.
🌐
GitHub
github.com › llvm-mirror › llvm › blob › master › include › llvm › IR › Function.h
llvm/include/llvm/IR/Function.h at master · llvm-mirror/llvm
April 23, 2020 - //===- llvm/Function.h - Class to represent a single function ---*- C++ -*-===//
Author   llvm-mirror
🌐
LLVM
llvm.org › doxygen › classllvm_1_1MachineFunction.html
LLVM: llvm::MachineFunction Class Reference
llvm · MachineFunction · Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members · llvm::MachineFunction Class Reference · #include "llvm/CodeGen/MachineFunction.h" Definition at line 295 of file MachineFunction.h.
🌐
LLVM
llvm.org › docs › LangRef.html
LLVM Language Reference Manual — LLVM 23.0.0git documentation
May 12, 2026 - LLVM function definitions consist of the “define” keyword, an optional linkage type, an optional runtime preemption specifier, an optional visibility style, an optional DLL storage class, an optional calling convention, an optional unnamed_addr attribute, a return type, an optional parameter ...
Find elsewhere
🌐
LLVM
llvm.org › doxygen › classllvm_1_1Argument.html
LLVM: llvm::Argument Class Reference
This class represents an incoming formal argument to a Function.
🌐
LLVM
llvm.org › doxygen › classllvm_1_1FunctionPass.html
LLVM: llvm::FunctionPass Class Reference
FunctionPass class - This class is used to implement most global optimizations.
🌐
LLVM
llvm.org › doxygen › classllvm_1_1Instruction.html
LLVM: llvm::Instruction Class Reference
References llvm::cast(). ... This function determines if the speficied instruction has the same "special" characteristics as the current one.
🌐
LLVM
llvm.org › doxygen › classllvm_1_1Use.html
LLVM: llvm::Use Class Reference
Public Member Functions | Static Public Member Functions | Friends | List of all members · llvm::Use Class Reference · A Use represents the edge between a Value definition and its users. More... #include "llvm/IR/Use.h" A Use represents the edge between a Value definition and its users.
🌐
LLVM
llvm.org › docs › ProgrammersManual.html
LLVM Programmer’s Manual — LLVM 23.0.0git documentation
The handleErrors function takes an error as its first argument, followed by a variadic list of “handlers”, each of which must be a callable type (a function, lambda, or class with a call operator) with one argument. The handleErrors function will visit each handler in the sequence and check its argument type against the dynamic type of the error, running the first handler that matches.
🌐
Readthedocs
mapping-high-level-constructs-to-llvm-ir.readthedocs.io › en › latest › basic-constructs › functions.html
Function Definitions and Declarations — Mapping High Level Constructs to LLVM IR documentation
For LLVM these two are completely different functions, with different names etc. define i32 @_Z8functionii(i32 %a, i32 %b) #0 { ; [...] ret i32 %5 } define double @_Z8functionddd(double %a, double %b, double %x) #0 { ; [...] ret double %8 } Classes or structs are often passed around by value, implicitly cloning the objects when they are passed.
🌐
UCSD
cseweb.ucsd.edu › classes › fa15 › cse231-a › part1.html
CSE 231 - Part 1
November 3, 2025 - In LLVM, each pass is implemented in a separate C++ class that inherits from one of the subclasses of the Pass class: Hello subclasses FunctionPass, which implements functionality for analyses and optimizations that only look at a single function at a time.
🌐
LLVM
llvm.org › doxygen › classllvm_1_1CallInst.html
LLVM: llvm::CallInst Class Reference
public: BBIterator() : BB(nullptr), Ctx(nullptr) {} BBIterator(llvm::BasicBlock <em>BB, llvm::BasicBlock::iterator It, Context *Ctx) : BB(BB), It(It), Ctx(Ctx) {} reference operator() const { return *getInstr(It); } LLVM_ABI BBIterator &operator++(); BBIterator operator++(int) { auto Copy = *this; ++*this; return Copy; } LLVM_ABI BBIterator &operator--(); BBIterator operator--(int) { auto Copy = *this; –*this; return Copy; } bool operator==(const BBIterator &Other) const { assert(Ctx == Other.Ctx && "BBIterators in different context!"); return It == Other.It; } bool operator!=(const BBIterat