Lunderberg opened a new pull request #9857:
URL: https://github.com/apache/tvm/pull/9857


   A few debug utilities that were needed while debugging a segfault that 
occurred within generated LLVM code, and may be more broadly applicable.
   
   * Set variable names in LLVM IR to match those present in TIR.  Used for 
let-bindings, loop iteration variables, 
   * Set LLVM block names based on those present in TIR.  (e.g. 
`for_body_x.outer` instead of `for_body`)
   * Utility function `CreatePrintf` for inserting a `printf()` call into the 
generated LLVM IR.
   * Utility function `CreateLookupReturnAddress`, to check the return address 
of the current function call.  This is useful when debugging buffer overruns 
that overwrite stack frames.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to