LLVM Code Generation

LLVM Code Generation

Quentin Colombet

72,24 €
IVA incluido
Disponible
Editorial:
Packt Publishing
Año de edición:
2025
ISBN:
9781837637782
72,24 €
IVA incluido
Disponible

Selecciona una librería:

  • Librería Samer Atenea
  • Librería Aciertas (Toledo)
  • Kálamo Books
  • Librería Perelló (Valencia)
  • Librería Elías (Asturias)
  • Donde los libros
  • Librería Kolima (Madrid)
  • Librería Proteo (Málaga)

Explore the world of code generation with the LLVM infrastructure, and learn how to extend existing backends or develop your ownGet With Your Book: PDF Copy, AI Assistant, and Next-Gen Reader FreeKey Features:- Understand the steps involved in generating assembly code from LLVM IR- Learn the key constructs needed to leverage LLVM for your hardware or backend- Strengthen your understanding with targeted exercises and practical examples in every chapterBook Description:The LLVM infrastructure is a popular compiler ecosystem widely used in the tech industry and academia. This technology is crucial for both experienced and aspiring compiler developers looking to make an impact in the field. Written by Quentin Colombet, a veteran LLVM contributor and architect of the GlobalISel framework, this book provides a primer on the main aspects of LLVM, with an emphasis on its backend infrastructure; that is, everything needed to transform the intermediate representation (IR) produced by frontends like Clang into assembly code and object files.You’ll learn how to write an optimizing code generator for a toy backend in LLVM. The chapters will guide you step by step through building this backend while exploring key concepts, such as the ABI, cost model, and register allocation. You’ll also find out how to express these concepts using LLVM’s existing infrastructure and how established backends address these challenges. Furthermore, the book features code snippets that demonstrate the actual APIs.By the end of this book, you’ll have gained a deeper understanding of LLVM. The concepts presented are expected to remain stable across different LLVM versions, making this book a reliable quick reference guide for understanding LLVM.What You Will Learn:- Understand essential compiler concepts, such as SSA, dominance, and ABI- Build and extend LLVM backends for creating custom compiler features- Optimize code by manipulating LLVM’s Intermediate Representation- Contribute effectively to LLVM open-source projects and development- Develop debugging skills for LLVM optimizations and passes- Grasp how encoding and (dis)assembling work in the context of compilers- Utilize LLVM’s TableGen DSL for creating custom compiler modelsWho this book is for:This book is for both beginners to LLVM and experienced LLVM developers. If you’re new to LLVM, it offers a clear, approachable guide to compiler backends, starting with foundational concepts. For seasoned LLVM developers, it dives into less-documented areas such as TableGen, MachineIR, and MC, enabling you to solve complex problems and expand your expertise. Whether you’re starting out or looking to deepen your knowledge, this book has something for you.Table of Contents- Building LLVM and Understanding the Directory Structure- Contributing to LLVM- Compiler Basics and How They Map to LLVM APIs- Writing Your First Optimization- Dealing with Pass Managers- TableGen - LLVM Swiss Army Knife for Modeling- Understanding LLVM IR- Survey of the Existing Passes- Introducing Target-Specific Constructs- Hands-On Debugging LLVM IR Passes- Legacy Instruction Selection Framework - SelectionDAG- Getting Started with the Machine Code Layer- The Machine Pass Pipeline- Getting Started with Instruction Selection- Instruction Selection: The IR Building Phase- Instruction Selection: The Legalization Phase(N.B. Please use the Read Sample option to see further chapters)

Artículos relacionados

  • Innovations in XML Applications and Metadata Management
    As new concepts such as virtualization, cloud computing, and web applications continue to emerge, XML has begun to assume the role as the universal language for communication among contrasting systems that grow throughout the internet. Innovations in XML Applications and Metadata Management: Advancing Technologies addresses the functionality between XML and its related technolo...
  • THEORY AND PRACTICE OF COMPUTATION
    MASAYUKI NUMAO JAIME SHIN-YA NISHIZAKI / NISHIZAKI SHIN-YA
     This is the proceedings of the Third Workshop on Computing: Theory and Practice, WCTP 2013 devoted to theoretical and practical approaches to computation. This workshop was organized by four top universities in Japan and the Philippines: Tokyo Institute of Technology, Osaka University, University of the Philippines — Diliman, and De La Salle University. The proceedings provide...
  • React 16 Tooling
    Adam Boduch
    ...
    Disponible

    69,99 €

  • HP Certified Systems Administrator (2nd Edition)
    Asghar Ghori
    Like the first edition of this book, the second edition also covers three main objectives ¿ to provide a comprehensive resource to individuals, including novice, IT/Non-HP-UX administrators, and HP-UX administrators who intend to take the new HP Certified Systems Administrator exam HP0-095 and pass it; to provide a quick and valuable on-the-job resource to HP-UX administrators,...
    Disponible

    58,77 €

  • Build your own Programming Language - Second Edition
    Clinton L. Jeffery / Imran Ahmad
    Learn to design your own programming language in a hands-on way by building compilers, using preprocessors, transpilers, and more, in this fully-refreshed second edition, written by the creator of the Unicon programming language.Purchase of the print or Kindle book includes a free PDF eBookKey Features- Takes a hands-on approach; learn by building the Jzero language, a subset o...
    Disponible

    74,14 €

  • Hands-On Unity Game Development - Fourth Edition
    Juan Gabriel Gomila Salas / Nicolas Alejandro Borromeo
    Unlock game development mastery with Unity 2023! This book takes you from conception to publication, equipping you with the key tools and techniques you need to bring your gaming vision to life.Key FeaturesLearn the fundamentals of Unity 2023 and create your dream gameExplore the world of augmented reality (AR) to create captivating mobile gamesPropel game performance and playe...
    Disponible

    73,58 €