[all-commits] [llvm/llvm-project] ff585f: [IR][ModRef] Introduce `errno` memory location

Antonio Frighetto via All-commits all-commits at lists.llvm.org
Thu Feb 13 03:14:41 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff585feacf58b384d7525d2b1368298435132fb4
      https://github.com/llvm/llvm-project/commit/ff585feacf58b384d7525d2b1368298435132fb4
  Author: Antonio Frighetto <me at antoniofrighetto.com>
  Date:   2025-02-13 (Thu, 13 Feb 2025)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/AsmParser/LLToken.h
    M llvm/include/llvm/Support/ModRef.h
    M llvm/lib/AsmParser/LLLexer.cpp
    M llvm/lib/AsmParser/LLParser.cpp
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
    M llvm/lib/IR/Attributes.cpp
    M llvm/lib/Support/ModRef.cpp
    M llvm/lib/Transforms/IPO/FunctionAttrs.cpp
    M llvm/lib/Transforms/IPO/SCCP.cpp
    M llvm/test/Assembler/memory-attribute-errors.ll
    M llvm/test/Assembler/memory-attribute.ll
    A llvm/test/Bitcode/Inputs/memory-attribute-upgrade.bc
    A llvm/test/Bitcode/memory-attribute-upgrade.ll
    M llvm/unittests/Support/ModRefTest.cpp
    M mlir/test/Target/LLVMIR/llvmir.mlir

  Log Message:
  -----------
  [IR][ModRef] Introduce `errno` memory location

Model C/C++ `errno` macro by adding a corresponding `errno`
memory location kind to the IR. Preliminary work to separate
`errno` writes from other memory accesses, to the benefit of
alias analyses and optimization correctness.

Previous discussion: https://discourse.llvm.org/t/rfc-modelling-errno-memory-effects/82972.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list