module TargetData: sig
.. end
type
t
val create : string -> t
TargetData.create rep
parses the target data string representation rep
.
See the constructor llvm::TargetData::TargetData.
val add : t ->
[< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
add_target_data td pm
adds the target data td
to the pass manager pm
.
Does not take ownership of the target data.
See the method llvm::PassManagerBase::add.
val as_string : t -> string
as_string td
is the string representation of the target data td
.
See the constructor llvm::TargetData::TargetData.
val invalidate_struct_layout : t -> Llvm.lltype -> unit
Struct layouts are speculatively cached. If a TargetDataRef is alive when
types are being refined and removed, this method must be called whenever a
struct type is removed to avoid a dangling pointer in this cache.
See the method llvm::TargetData::InvalidateStructLayoutInfo.
val dispose : t -> unit
Deallocates a TargetData.
See the destructor llvm::TargetData::~TargetData.