Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

llvm-ir

How is GCC IR different from LLVM IR?

August 31, 2023 by Tarik

Firstly, as this answer touches on complex and sensitive topics I want to make few disclaimers: I assume your question is about middle-end IRs of LLVM and GCC (as the term “LLVM IR” applies only to middle-end). Discussion of differences of back-end IRs (LLVM MachineIR and GCC RTL) and related codegen tools (LLVM Tablegen and … Read more

Categories gcc Tags compilation, compiler-construction, gcc, llvm-ir Leave a comment

Pragmatics of typed intermediate languages

April 6, 2023 by Tarik

Do they re-typecheck, in the example above K(M) and K(N)? Yes, they do. It’s not that bad, though. The typechecker knows that K(M) is an application of K to M. It knows what the type of K is, and that should be a function type. It knows what the type of M is, and it … Read more

Categories compiler-construction Tags compiler-construction, compiler-optimization, ghc, intermediate-language, llvm-ir Leave a comment

What exactly PHI instruction does and how to use it in LLVM

December 29, 2022 by Tarik

A phi node is an instruction used to select a value depending on the predecessor of the current block (Look here to see the full hierarchy – it’s also used as a value, which is one of the classes which it inherits from). Phi nodes are necessary due to the structure of the SSA (static … Read more

Categories llvm Tags llvm, llvm-ir Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa