[Mlir-commits] [mlir] [mlir][GPU] Plumb range information through the NVVM lowerings (PR #107659)
Durgadoss R
llvmlistbot at llvm.org
Fri Sep 13 04:15:06 PDT 2024
================
@@ -319,17 +319,19 @@ class LLVM_IntrOpBase<Dialect dialect, string opName, string enumName,
string immArgPositionsCpp = "{" # !interleave(immArgPositions, ", ") # "}";
string immArgAttrNamesCpp = "{" # !interleave(!foreach(name, immArgAttrNames,
"StringLiteral(\"" # name # "\")"), ", ") # "}";
- let llvmBuilder = [{
+ string baseLlvmBuilder = [{
auto *inst = LLVM::detail::createIntrinsicCall(
builder, moduleTranslation, &opInst, llvm::Intrinsic::}] # !interleave([
enumName, "" # numResults, overloadedResultsCpp, overloadedOperandsCpp,
immArgPositionsCpp, immArgAttrNamesCpp], ",") # [{);
(void) inst;
- }] # !if(!gt(requiresAccessGroup, 0), setAccessGroupsMetadataCode, "")
+ }];
+ string baseLlvmBuilderCoda = !if(!gt(numResults, 0), "$res = inst;", "");
----------------
durga4github wrote:
I believe we want this to be 'baseLlvmBuilderCode' and not '..coda'?
https://github.com/llvm/llvm-project/pull/107659
More information about the Mlir-commits
mailing list