You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/01/06 18:45:36 UTC

[GitHub] [tvm] Lunderberg opened a new pull request #9857: [LLVM] LLVM codegen debug utilities

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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] Lunderberg commented on pull request #9857: [LLVM] LLVM codegen debug utilities

Posted by GitBox <gi...@apache.org>.
Lunderberg commented on pull request #9857:
URL: https://github.com/apache/tvm/pull/9857#issuecomment-1006829847


   @mbrookhart 


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] masahi merged pull request #9857: [LLVM] LLVM codegen debug utilities

Posted by GitBox <gi...@apache.org>.
masahi merged pull request #9857:
URL: https://github.com/apache/tvm/pull/9857


   


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tvm] masahi merged pull request #9857: [LLVM] LLVM codegen debug utilities

Posted by GitBox <gi...@apache.org>.
masahi merged pull request #9857:
URL: https://github.com/apache/tvm/pull/9857


   


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org