[clang] [CIR] Add nothrow attribute to the call operation (PR #145178)

Sirui Mu via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 29 05:13:05 PDT 2025


Lancern wrote:

I conducted a minor refactor in the latest commit.

Prior to the latest commit, CallOp build functions (namely, `CallOp::build`, `CIRBaseBuilderTy::createCallOp`, and `CIRBaseBuilderTy::createIndirectCallOp`) takes quite a lot parameters, including the extra optional call attributes. I'm worried that this could eventually explode the parameter list of build functions, making them difficult to read and use. The latest commit removes these extra parameters from the build functions, and instead set these attributes on the constructed call op later in a separate step.

https://github.com/llvm/llvm-project/pull/145178


More information about the cfe-commits mailing list