On this page:
9.1 Value Properties
llvm-set-alignment
llvm-set-arg-operand
9.2 Atomic Operation Properties
llvm-set-atomic-single-thread
llvm-set-atomic-sync-scope-id
llvm-set-cmp-xchg-failure-ordering
llvm-set-cmp-xchg-success-ordering
9.3 Exception Handling Properties
llvm-set-cleanup
llvm-set-condition
9.4 Metadata and Debug Info
llvm-set-current-debug-location
llvm-set-current-debug-location2
9.5 Module Properties
llvm-set-data-layout
llvm-set-target-triple
llvm-set-source-file-name
9.6 Global and Function Properties
llvm-set-externally-initialized
llvm-set-comdat
9.7 Instruction Properties
llvm-set-exact
llvm-set-fast-math-flags
llvm-set-inbound
llvm-set-nsw
llvm-set-nuw
llvm-set-is-tail-call
llvm-set-volatile
llvm-set-weak
9.1

9 Setters (Modification Functions)🔗ℹ

Functions to modify properties of LLVM IR objects.

9.1 Value Properties🔗ℹ

procedure

(llvm-set-alignment val bytes)  void?

  val : LLVMValueRef?
  bytes : exact-nonnegative-integer?
Sets the alignment of a value to bytes bytes.

procedure

(llvm-set-arg-operand fn index arg)  void?

  fn : LLVMValueRef?
  index : exact-nonnegative-integer?
  arg : LLVMValueRef?
Sets the operand at index to arg for a function call or invoke instruction.

9.2 Atomic Operation Properties🔗ℹ

procedure

(llvm-set-atomic-single-thread inst    
  single-thread?)  void?
  inst : LLVMValueRef?
  single-thread? : boolean?
Sets whether an atomic instruction is single-threaded.

procedure

(llvm-set-atomic-sync-scope-id inst    
  scope-id)  void?
  inst : LLVMValueRef?
  scope-id : exact-nonnegative-integer?
Sets the synchronization scope ID of an atomic instruction.

procedure

(llvm-set-cmp-xchg-failure-ordering inst    
  ordering)  void?
  inst : LLVMValueRef?
  ordering : _llvm-atomic-ordering
Sets the failure memory ordering of a compare-and-exchange instruction.

procedure

(llvm-set-cmp-xchg-success-ordering inst    
  ordering)  void?
  inst : LLVMValueRef?
  ordering : _llvm-atomic-ordering
Sets the success memory ordering of a compare-and-exchange instruction.

9.3 Exception Handling Properties🔗ℹ

procedure

(llvm-set-cleanup pad cleanup?)  void?

  pad : LLVMValueRef?
  cleanup? : boolean?
Sets the cleanup flag on an exception handling pad.

procedure

(llvm-set-condition br cond)  void?

  br : LLVMValueRef?
  cond : LLVMValueRef?
Sets the condition value for a conditional branch instruction.

9.4 Metadata and Debug Info🔗ℹ

procedure

(llvm-set-current-debug-location builder    
  location)  void?
  builder : LLVMBuilderRef?
  location : LLVMValueRef?
Sets the current debug location for IR instructions being built.

procedure

(llvm-set-current-debug-location2 builder    
  location)  void?
  builder : LLVMBuilderRef?
  location : LLVMMetadataRef?
Sets the current debug location for IR instructions being built using metadata.

9.5 Module Properties🔗ℹ

procedure

(llvm-set-data-layout module data-layout)  void?

  module : LLVMModuleRef?
  data-layout : string?
Sets the data layout specification for a module.

procedure

(llvm-set-target-triple module triple)  void?

  module : LLVMModuleRef?
  triple : string?
Sets the target triple (architecture, vendor, operating system) for a module.

procedure

(llvm-set-source-file-name module name)  void?

  module : LLVMModuleRef?
  name : string?
Sets the source file name for a module.

9.6 Global and Function Properties🔗ℹ

procedure

(llvm-set-externally-initialized global    
  externally-init)  void?
  global : LLVMValueRef?
  externally-init : boolean?
Sets whether a global variable is externally initialized.

procedure

(llvm-set-comdat global comdat)  void?

  global : LLVMValueRef?
  comdat : LLVMComdatRef?
Sets the COMDAT symbol for a global value.

9.7 Instruction Properties🔗ℹ

procedure

(llvm-set-exact inst is-exact)  void?

  inst : LLVMValueRef?
  is-exact : boolean?
Sets whether a binary operation is exact (no remainder).

procedure

(llvm-set-fast-math-flags inst flags)  void?

  inst : LLVMValueRef?
  flags : exact-nonnegative-integer?
Sets the fast-math flags on a floating-point operation.

procedure

(llvm-set-inbound gep in-bounds)  void?

  gep : LLVMValueRef?
  in-bounds : boolean?
Sets whether a GEP (GetElementPtr) instruction has inbounds semantics.

procedure

(llvm-set-nsw inst has-nsw)  void?

  inst : LLVMValueRef?
  has-nsw : boolean?
Sets the no-signed-wrap flag on an instruction.

procedure

(llvm-set-nuw inst has-nuw)  void?

  inst : LLVMValueRef?
  has-nuw : boolean?
Sets the no-unsigned-wrap flag on an instruction.

procedure

(llvm-set-is-tail-call call is-tail)  void?

  call : LLVMValueRef?
  is-tail : boolean?
Sets whether a function call should be tail-called.

procedure

(llvm-set-volatile inst is-volatile)  void?

  inst : LLVMValueRef?
  is-volatile : boolean?
Sets whether a memory operation is volatile.

procedure

(llvm-set-weak global is-weak)  void?

  global : LLVMValueRef?
  is-weak : boolean?
Sets whether a global value has weak linkage.