getLinkage: Get linkage for a Global value

View source: R/value.R

getLinkageR Documentation

Get linkage for a Global value

Description

Routines/functions and variables are global values in LLVM. They can have various different types of linkage that control whether, e.g., the variable is visible outside of a module or defined outside of this module

Usage

getLinkage(obj)
setLinkage(obj, val) 

Arguments

obj

the GlobalValue instance, e.g., a Function or GlobalVariable

val

the value specifying the type of linkage. This can be provided as an integer literal value, an R variable such as ExternalLinkage corresponding to the enumerated constants in LLVM or a charater string corresponding to the name of the enumerated constant. This is coerced to a named integer.

Value

a named integer value. The name is the symbolic name of the enumerated constant, e.g., ExternalLinkage, InternalLinkage, ExternalWeakLinkage.

Author(s)

DTL

References

https://llvm.org/docs/LangRef.html#linkage


duncantl/Rllvm documentation built on April 23, 2024, 6:14 p.m.