[Mlir-commits] [mlir] [mlir][gpu] Fix bug with GPU hardware intrinsic global location (PR #144923)
River Riddle
llvmlistbot at llvm.org
Thu Jun 19 11:08:48 PDT 2025
================
@@ -164,7 +164,8 @@ struct OpToFuncCallLowering : public ConvertOpToLLVMPattern<SourceOp> {
auto parentFunc = op->getParentOfType<FunctionOpInterface>();
assert(parentFunc && "expected there to be a parent function");
OpBuilder b(parentFunc);
- return b.create<LLVMFuncOp>(op->getLoc(), funcName, funcType);
+ auto globalloc = op->getLoc()->findInstanceOfOrUnknown<FileLineColLoc>();
----------------
River707 wrote:
Please add a comment here about why you're grabbing the location this way.
https://github.com/llvm/llvm-project/pull/144923
More information about the Mlir-commits
mailing list