[PATCH] D151994: [AMDGPU] Add amdgpu_cs_chain[_preserve] CCs to IR & verifier

Diana Picus via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 2 06:39:23 PDT 2023


rovka created this revision.
rovka added reviewers: AMDGPU, nhaehnle, ruiling.
Herald added subscribers: ormris, kerbowa, steven_wu, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
rovka requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

Add the `amdgpu_cs_chain` and `amdgpu_cs_chain_preserve` keywords to
LLVM IR and make sure we can parse and print them. Also make sure we
perform some basic checks in the IR verifier - similar to what we check
for many of the other AMDGPU calling conventions, plus the additional
restriction that we can't have direct calls to functions with these
calling conventions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151994

Files:
  llvm/include/llvm/AsmParser/LLToken.h
  llvm/include/llvm/IR/CallingConv.h
  llvm/lib/AsmParser/LLLexer.cpp
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/IR/AsmWriter.cpp
  llvm/lib/IR/Verifier.cpp
  llvm/test/Assembler/amdgpu-cs-chain-cc.ll
  llvm/test/Verifier/amdgpu-cc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151994.527841.patch
Type: text/x-patch
Size: 9077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230602/9615e734/attachment.bin>


More information about the llvm-commits mailing list