[all-commits] [llvm/llvm-project] a8874c: [llvm][IR] Add per-global code model attribute (#7...

hev via All-commits all-commits at lists.llvm.org
Mon Dec 4 17:43:07 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a8874cf50bb676facb4429234dff7774e579faef
      https://github.com/llvm/llvm-project/commit/a8874cf50bb676facb4429234dff7774e579faef
  Author: hev <wangrui at loongson.cn>
  Date:   2023-12-05 (Tue, 05 Dec 2023)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/AsmParser/LLParser.h
    M llvm/include/llvm/AsmParser/LLToken.h
    M llvm/include/llvm/IR/GlobalObject.h
    M llvm/include/llvm/IR/GlobalVariable.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/AsmWriter.cpp
    M llvm/lib/IR/Globals.cpp
    M llvm/test/Assembler/globalvariable-attributes.ll
    A llvm/test/Transforms/GlobalOpt/globalvar-code-model.ll

  Log Message:
  -----------
  [llvm][IR] Add per-global code model attribute (#72077)

This adds a per-global code model attribute, which can override the
target's code model to access global variables.

Suggested-by: Arthur Eubanks <aeubanks at google.com>
Link: https://discourse.llvm.org/t/how-to-best-implement-code-model-overriding-for-certain-values/71816
Link: https://discourse.llvm.org/t/rfc-add-per-global-code-model-attribute/74944




More information about the All-commits mailing list