clang 22.0.0git
Typedefs | Functions
Inline Assembly introspection

The functions in this group provide access to information about GCC-style inline assembly statements. More...

Collaboration diagram for Inline Assembly introspection:
[フレーム]

Typedefs

typedef void *  CXModule

Functions

  Given a CXCursor_GCCAsmStmt cursor, return the assembly template string.
  Given a CXCursor_GCCAsmStmt cursor, check if the assembly block has goto labels.
  Given a CXCursor_GCCAsmStmt cursor, count the number of outputs.
  Given a CXCursor_GCCAsmStmt cursor, count the number of inputs.
  Given a CXCursor_GCCAsmStmt cursor, get the constraint and expression cursor to the Index-th input.
  Given a CXCursor_GCCAsmStmt cursor, get the constraint and expression cursor to the Index-th output.
  Given a CXCursor_GCCAsmStmt cursor, count the clobbers in it.
  Given a CXCursor_GCCAsmStmt cursor, get the Index-th clobber of it.
  Given a CXCursor_GCCAsmStmt cursor, check if the inline assembly is volatile.
  Given a CXCursor_ModuleImportDecl cursor, return the associated module.
  Given a CXFile header file, return the module that contains it, if one exists.

Detailed Description

The functions in this group provide access to information about GCC-style inline assembly statements.

The functions in this group provide access to information about modules.

Typedef Documentation

◆  CXModule

typedef void* CXModule

Definition at line 4633 of file Index.h.

Function Documentation

◆  clang_Cursor_getGCCAssemblyClobber()

CINDEX_LINKAGE CXString clang_Cursor_getGCCAssemblyClobber ( CXCursor Cursor,
unsigned Index )

Given a CXCursor_GCCAsmStmt cursor, get the Index-th clobber of it.

This function returns a valid empty string if the cursor does not point at a GCC inline assembly block or Index is out of bounds.

Users are responsible for releasing the allocation of returned string via clang_disposeString.

References CINDEX_LINKAGE.

◆  clang_Cursor_getGCCAssemblyInput()

CINDEX_LINKAGE unsigned clang_Cursor_getGCCAssemblyInput ( CXCursor Cursor,
unsigned Index,
CXString * Constraint,
CXCursor * Expr )

Given a CXCursor_GCCAsmStmt cursor, get the constraint and expression cursor to the Index-th input.

This function returns 1 when the cursor points at a GCC inline assembly statement, Index is within bounds and both the Constraint and Expr are not NULL. Otherwise, this function returns 0 but leaves Constraint and Expr intact.

Users are responsible for releasing the allocation of Constraint via clang_disposeString.

References CINDEX_LINKAGE.

◆  clang_Cursor_getGCCAssemblyNumClobbers()

CINDEX_LINKAGE unsigned clang_Cursor_getGCCAssemblyNumClobbers ( CXCursor Cursor )

Given a CXCursor_GCCAsmStmt cursor, count the clobbers in it.

This function also returns 0 if the cursor does not point at a GCC inline assembly block.

References CINDEX_LINKAGE.

◆  clang_Cursor_getGCCAssemblyNumInputs()

CINDEX_LINKAGE unsigned clang_Cursor_getGCCAssemblyNumInputs ( CXCursor )

Given a CXCursor_GCCAsmStmt cursor, count the number of inputs.

This function also returns 0 if the cursor does not point at a GCC inline assembly block.

References CINDEX_LINKAGE.

◆  clang_Cursor_getGCCAssemblyNumOutputs()

CINDEX_LINKAGE unsigned clang_Cursor_getGCCAssemblyNumOutputs ( CXCursor )

Given a CXCursor_GCCAsmStmt cursor, count the number of outputs.

This function also returns 0 if the cursor does not point at a GCC inline assembly block.

References CINDEX_LINKAGE.

◆  clang_Cursor_getGCCAssemblyOutput()

CINDEX_LINKAGE unsigned clang_Cursor_getGCCAssemblyOutput ( CXCursor Cursor,
unsigned Index,
CXString * Constraint,
CXCursor * Expr )

Given a CXCursor_GCCAsmStmt cursor, get the constraint and expression cursor to the Index-th output.

This function returns 1 when the cursor points at a GCC inline assembly statement, Index is within bounds and both the Constraint and Expr are not NULL. Otherwise, this function returns 0 but leaves Constraint and Expr intact.

Users are responsible for releasing the allocation of Constraint via clang_disposeString.

References CINDEX_LINKAGE.

◆  clang_Cursor_getGCCAssemblyTemplate()

CINDEX_LINKAGE CXString clang_Cursor_getGCCAssemblyTemplate ( CXCursor )

Given a CXCursor_GCCAsmStmt cursor, return the assembly template string.

As per LLVM IR Assembly Template language, template placeholders for inputs and outputs are either of the form $N where N is a decimal number as an index into the input-output specification, or ${N:M} where N is a decimal number also as an index into the input-output specification and M is the template argument modifier. The index N in both cases points into the the total inputs and outputs, or more specifically, into the list of outputs followed by the inputs, starting from index 0 as the first available template argument.

This function also returns a valid empty string if the cursor does not point at a GCC inline assembly block.

Users are responsible for releasing the allocation of returned string via clang_disposeString.

References CINDEX_LINKAGE.

◆  clang_Cursor_getModule()

CINDEX_LINKAGE CXModule clang_Cursor_getModule ( CXCursor C )

Given a CXCursor_ModuleImportDecl cursor, return the associated module.

References CINDEX_LINKAGE.

◆  clang_Cursor_isGCCAssemblyHasGoto()

CINDEX_LINKAGE unsigned clang_Cursor_isGCCAssemblyHasGoto ( CXCursor )

Given a CXCursor_GCCAsmStmt cursor, check if the assembly block has goto labels.

This function also returns 0 if the cursor does not point at a GCC inline assembly block.

References CINDEX_LINKAGE.

◆  clang_Cursor_isGCCAssemblyVolatile()

CINDEX_LINKAGE unsigned clang_Cursor_isGCCAssemblyVolatile ( CXCursor Cursor )

Given a CXCursor_GCCAsmStmt cursor, check if the inline assembly is volatile.

This function returns 0 if the cursor does not point at a GCC inline assembly block.

References CINDEX_LINKAGE.

◆  clang_getModuleForFile()

CINDEX_LINKAGE CXModule clang_getModuleForFile ( CXTranslationUnit ,
CXFile  )

Given a CXFile header file, return the module that contains it, if one exists.

References CINDEX_LINKAGE.

◆  clang_Module_getASTFile()

CINDEX_LINKAGE CXFile clang_Module_getASTFile ( CXModule Module )
Parameters
Module a module object.
Returns
the module file where the provided module object came from.

References CINDEX_LINKAGE.

◆  clang_Module_getFullName()

CINDEX_LINKAGE CXString clang_Module_getFullName ( CXModule Module )
Parameters
Module a module object.
Returns
the full name of the module, e.g. "std.vector".

References CINDEX_LINKAGE.

◆  clang_Module_getName()

CINDEX_LINKAGE CXString clang_Module_getName ( CXModule Module )
Parameters
Module a module object.
Returns
the name of the module, e.g. for the 'std.vector' sub-module it will return "vector".

References CINDEX_LINKAGE.

◆  clang_Module_getNumTopLevelHeaders()

CINDEX_LINKAGE unsigned clang_Module_getNumTopLevelHeaders ( CXTranslationUnit ,
CXModule Module )
Parameters
Module a module object.
Returns
the number of top level headers associated with this module.

References CINDEX_LINKAGE.

◆  clang_Module_getParent()

CINDEX_LINKAGE CXModule clang_Module_getParent ( CXModule Module )
Parameters
Module a module object.
Returns
the parent of a sub-module or NULL if the given module is top-level, e.g. for 'std.vector' it will return the 'std' module.

References CINDEX_LINKAGE.

◆  clang_Module_getTopLevelHeader()

CINDEX_LINKAGE CXFile clang_Module_getTopLevelHeader ( CXTranslationUnit ,
CXModule Module,
unsigned Index )
Parameters
Module a module object.
Index top level header index (zero-based).
Returns
the specified top level header associated with the module.

References CINDEX_LINKAGE.

◆  clang_Module_isSystem()

CINDEX_LINKAGE int clang_Module_isSystem ( CXModule Module )
Parameters
Module a module object.
Returns
non-zero if the module is a system one.

References CINDEX_LINKAGE.


Generated on for clang by doxygen 1.14.0

AltStyle によって変換されたページ (->オリジナル) /