Skip to content

chihuai/llvm_study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Identifiers

regular expression
'[%@][a-zA-Z$._][a-zA-Z$._0-9]*'.

  • @全域變數
  • %區域變數
  • @1 $2這些應該是暫存變數不確定)
  • 可用跳脫字元\
  • 雙引號夾著有作用

範例

%result = mul i32 %X, 8

%result = shl i32 %X, 3

%0 = add i32 %X, %X           ; yields i32:%0  
%1 = add i32 %0, %0           ; yields i32:%1  
%result = add i32 %1, %1

High Level Structure

Module Structure

Each module consists of functions, global variables, and symbol table entries.

Linkage Types

  • private:只有目前module可存取不,顯示在symbol table上(This doesn’t show up in any symbol table in the object file.)
  • internal:跟private功能差不多 類似C的static
  • available_externally
  • linkonce
  • weak
  • common
  • appending
  • extern_weak
  • linkonce_odr, weak_odr
  • external

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages