search for: astimport

Displaying 7 results from an estimated 7 matches for "astimport".

Did you mean: pstimport
2017 Sep 19
3
Dependency Info from AST
Hi Chris, Thanks for the suggestion i was trying to use the patch https://reviews.llvm.org/D30691 and ASTimporter concept for cross file analysis. Can u explain in details the approach u suggested ? What is `nm` on the object files ? Can u suggest some approach to start on this cross file analysis tool. Thanks, Siddharth On Tue, Sep 19, 2017 at 9:42 PM, Chris Bieneman <beanz at apple.com> wrote: >...
2017 Sep 19
0
Dependency Info from AST
> On Sep 19, 2017, at 10:09 AM, Siddharth Shankar Swain <h2015096 at pilani.bits-pilani.ac.in> wrote: > > Hi Chris, > Thanks for the suggestion i was trying to use the patch https://reviews.llvm.org/D30691 <https://reviews.llvm.org/D30691> and ASTimporter concept for cross file analysis. Can u explain in details the approach u suggested ? There is a tutorial on ASTVisitors here: http://clang.llvm.org/docs/RAVFrontendAction.html > What is `nm` on the object files ? nm is a standard unix tool: https://en.wikipedia.org/wiki/Nm_%28Unix%29 <ht...
2017 Sep 19
0
Dependency Info from AST
(Apologies for the re-send Siddharth, I failed to cc the list) There is no existing tool that I'm aware of which performs this analysis on the AST. It is possible to do on an AST. You would just need to write an AST Visitor that finds declarations, definitions, and uses of functions. Is there a reason you need to do this at the AST level? With C code this analysis can be trivially performed
2018 Sep 26
5
RFC: Adding a code size analysis tool
...ef::StringRef(char const*) [inlining-target] 39262 llvm::MCInst::getOperand(unsigned int) const [inlining-target] 33268 clang::CodeCompletionResult::~CodeCompletionResult() [inlining-target] 25763 llvm::operator+(llvm::Twine const&, llvm::Twine const&) [inlining-target] 25525 clang::ASTImporter::Import(clang::SourceLocation) [inlining-target] 21096 clang::Sema::Diag(clang::SourceLocation, unsigned int) [inlining-target] 20898 Feedback & questions welcome! thanks, vedant
2017 Sep 14
2
Dependency Info from AST
Hi, Can anyone help if for example we have multiple c files and we want to analyze their ASTs to find out any dependency between them ( like a function defined in one c file is used in other, any external variable etc ). How can we do it at the AST level? I mean is there any automated tool or flag for it in LLVM. If anyone has any idea please tell. sincerely, Siddharth -------------- next part
2018 Oct 01
4
RFC: Adding a code size analysis tool
...onst*) [inlining-target] 39262 > llvm::MCInst::getOperand(unsigned int) const [inlining-target] 33268 > clang::CodeCompletionResult::~CodeCompletionResult() [inlining-target] 25763 > llvm::operator+(llvm::Twine const&, llvm::Twine const&) [inlining-target] 25525 > clang::ASTImporter::Import(clang::SourceLocation) [inlining-target] 21096 > clang::Sema::Diag(clang::SourceLocation, unsigned int) [inlining-target] 20898 > > Feedback & questions welcome! > > thanks, > vedant -------------- next part -------------- An HTML attachment was scrubbed... URL:...
2018 Oct 01
3
RFC: Adding a code size analysis tool
...-target] 39262 >> llvm::MCInst::getOperand(unsigned int) const [inlining-target] 33268 >> clang::CodeCompletionResult::~CodeCompletionResult() [inlining-target] 25763 >> llvm::operator+(llvm::Twine const&, llvm::Twine const&) [inlining-target] 25525 >> clang::ASTImporter::Import(clang::SourceLocation) [inlining-target] 21096 >> clang::Sema::Diag(clang::SourceLocation, unsigned int) [inlining-target] 20898 >> >> Feedback & questions welcome! >> >> thanks, >> vedant -------------- next part -------------- An HTML attachm...