タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

LLVMに関するgyuqueのブックマーク (2)

  • LLVM overview 20110122

    98. 中間言語の遷移 define i32 @max(i32 %x, i32 %y) nounwind readnone { %1 = icmp sgt i32 %x, %y %.0 = select i1 %1, i32 %x, i32 %y ret i32 %.0 } Function Live Ins: %R0 in reg%16384, %R1 in reg%16385 Function Live Outs: %R0 BB#0: derived from LLVM BB %0 Live Ins: %R0 %R1 CMPrr %R0, %R1, pred:14, pred:%reg0, %CPSR<imp-def> %R1<def> = MOVCCr %R1, %R0<kill>, pred:12, pred:%CPSR<kill> %R0<def> = MOVr %R1<kill

    LLVM overview 20110122
    gyuque
    gyuque 2011/11/19
  • LLVM で hello, world - 言語ゲーム

    LLVM で hello, world した記録。とても簡単でした。 LLVM は http://llvm.org/releases/2.8/llvm-2.8.tgz からダウンロードしました。コンパイルの仕方は普通に $ ./configure $ make $ sudo make installです。結構時間がかかります。LLVM のプログラムは LLVM assembly language で書きます。 ; hello.ll @hello = internal constant [13 x i8] c"hello, world\00" declare i32 @puts(i8*) define i32 @main() { start: %0 = call i32 @puts(i8* getelementptr inbounds ([13 x i8]* @hello, i32 0, i

    LLVM で hello, world - 言語ゲーム
    gyuque
    gyuque 2011/11/19
  • 1