[clang] [clang][DebugInfo] Add inlined subprogram metadata for compiler built-ins (PR #189969)
Dan Liew via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 17 10:03:14 PDT 2026
================
@@ -2642,12 +2642,80 @@ static RValue EmitHipStdParUnsupportedBuiltin(CodeGenFunction *CGF,
return RValue::get(CGF->Builder.CreateCall(UBF, Args));
}
+/// Determines whether we should treat a given built-in as a call to an
+/// artificial inlined function in debug info.
+static bool shouldUseBuiltinDebugLocation(unsigned BuiltinID) {
----------------
delcypher wrote:
Could this information live in clang/include/clang/Basic/Builtins.td instead? Maybe there's some kind classification you could add here that's more general than "should add artificial debug info" that you can use to decide whether or not to emit the artificial inline frame?
https://github.com/llvm/llvm-project/pull/189969
More information about the cfe-commits
mailing list