[all-commits] [llvm/llvm-project] 329775: [CSKY] Enable TargetAsmStreamer/ELFStreamer and su...

Zi Xuan Wu (Zeson) via All-commits all-commits at lists.llvm.org
Mon Mar 7 23:02:49 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 32977589019d8339b37ee2abcc015d194fd1fa37
      https://github.com/llvm/llvm-project/commit/32977589019d8339b37ee2abcc015d194fd1fa37
  Author: Zi Xuan Wu <zixuan.wu at linux.alibaba.com>
  Date:   2022-03-08 (Tue, 08 Mar 2022)

  Changed paths:
    M llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
    M llvm/lib/Target/CSKY/CSKYAsmPrinter.cpp
    M llvm/lib/Target/CSKY/CSKYAsmPrinter.h
    M llvm/lib/Target/CSKY/MCTargetDesc/CMakeLists.txt
    A llvm/lib/Target/CSKY/MCTargetDesc/CSKYELFStreamer.cpp
    A llvm/lib/Target/CSKY/MCTargetDesc/CSKYELFStreamer.h
    M llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCTargetDesc.cpp
    M llvm/lib/Target/CSKY/MCTargetDesc/CSKYMCTargetDesc.h
    A llvm/lib/Target/CSKY/MCTargetDesc/CSKYTargetStreamer.cpp
    A llvm/lib/Target/CSKY/MCTargetDesc/CSKYTargetStreamer.h
    A llvm/test/MC/CSKY/attribute.s
    A llvm/test/MC/CSKY/invalid-attribute.s

  Log Message:
  -----------
  [CSKY] Enable TargetAsmStreamer/ELFStreamer and support asm directive of csky_attribute

Add support of parsing .csky_attribute directive and emit related target attributes in .csky.attribute section.
It does not emit attribute directive in assembly code, so only emit target attributes in ELF streamer.
In ELF streamer, it handles the header EFlag and the csky_attribute section which contains some attribute items.
The EFlag and attribute items are calculated from feature bits based on Subtarget.




More information about the All-commits mailing list