summaryrefslogtreecommitdiff
path: root/polly/lib/CodeGen/RuntimeDebugBuilder.cpp
AgeCommit message (Collapse)Author
2024-09-23[IRBuilder] Remove uses of CreateGlobalStringPtr() (NFC)Nikita Popov
Since the migration to opaque pointers, CreateGlobalStringPtr() is the same as CreateGlobalString(). Normalize to the latter.
2023-11-27[mlir,polly] Replace uses of IRBuilder::getInt8PtrTy with getPtrTy. NFCFangrui Song
2023-03-08[Polly] Remove Polly-ACC.Michael Kruse
Polly-ACC is unmaintained and since it has never been ported to the NPM pipeline, since D136621 it is not even accessible anymore without manually specifying the passes on the `opt` command line. Since there is no plan to put it to a maintainable state, remove it from Polly. Reviewed By: grosser Differential Revision: https://reviews.llvm.org/D142580
2022-03-30[RuntimeDebugBuilder] Remove pointer element type accessesNikita Popov
2021-07-17[OpaquePtr] Remove uses of CreateGEP() without element typeNikita Popov
Remove uses of to-be-deprecated API. In cases where the correct element type was not immediately obvious to me, fall back to explicit getPointerElementType().
2021-03-12[OpaquePtrs] Remove some uses of type-less CreateGEP() (NFC)Nikita Popov
This removes some (but not all) uses of type-less CreateGEP() and CreateInBoundsGEP() APIs, which are incompatible with opaque pointers. There are a still a number of tricky uses left, as well as many more variation APIs for CreateGEP.
2020-01-23[Alignment][NFC] Use Align with CreateAlignedStoreGuillaume Chatelet
Summary: This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Reviewers: courbet, bollu Subscribers: arsenm, jvesely, nhaehnle, hiraditya, kerbowa, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D73274
2019-12-12[IR] Include target specific intrinsic headersHeejin Ahn
After D71320, target-specific intrinsic headers should be included.
2019-03-28Apply include-what-you-use #include removal suggestions. NFC.Michael Kruse
This removes unused includes (and forward declarations) as suggested by include-what-you-use. If a transitive include of a removed include is required to compile a file, I added the required header (or forward declaration if suggested by include-what-you-use). This should reduce compilation time and reduce the number of iterative recompilations when a header was changed. llvm-svn: 357209
2019-01-19Update the file headers across all of the LLVM projects in the monorepoChandler Carruth
to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
2018-04-25[CodeGen] Print executed statement instances at runtime.Michael Kruse
Add the options -polly-codegen-trace-stmts and -polly-codegen-trace-scalars. When enabled, adds a call to the beginning of every generated statement that prints the executed statement instance. With -polly-codegen-trace-scalars, it also prints the value of all scalars that are used in the statement, and PHIs defined in the beginning of the statement. Differential Revision: https://reviews.llvm.org/D45743 llvm-svn: 330864
2018-04-19[RuntimeDebugBuilder] Do not break for 64 bit integersTobias Grosser
In r330292 this assert was turned incorrectly into an unreachable, but the correct behavior (thanks Michael) is to assert for anything that is not 64 bit, but falltrough for 64 bit. I document this in the source code. llvm-svn: 330309
2018-04-18[RuntimeDebugBuilder] Turn assert into an unreachableTobias Grosser
llvm-svn: 330289
2017-04-11Update for alloca construction changesMatt Arsenault
llvm-svn: 299905
2016-07-07Update for llvm r274769Justin Bogner
llvm-svn: 274777
2015-11-06polly/ADT: Remove implicit ilist iterator conversions, NFCDuncan P. N. Exon Smith
Remove all the implicit ilist iterator conversions from polly, in preparation for making them illegal in ADT. There was one oddity I came across: at line 95 of lib/CodeGen/LoopGenerators.cpp, there was a post-increment `Builder.GetInsertPoint()++`. Since it was a no-op, I removed it, but I admit I wonder if it might be a bug (both before and after this change)? Perhaps it should be a pre-increment? llvm-svn: 252357
2015-11-05RunTimeDebugBuilder: Allocate memory _after_ knowing how much is neededTobias Grosser
This fixes a memory corruption issue, where we accessed more memory than actually allocated. llvm-svn: 252197
2015-09-06Add option -polly-codegen-add-debug-printingTobias Grosser
When this option is enabled, Polly will emit printf calls for each scalar load/and store which dump the scalar value loaded/stored at run time. This patch also refactors the RuntimeDebugBuilder to use variadic templates when generating CPU printfs. As result, it now becomes easier to print strings that consist of a set of arguments. Also, as a single printf call is emitted, it is more likely for such strings to be emitted atomically if executed multi-threaded. llvm-svn: 246941
2015-09-06RuntimeDebugPrinter: Simplify code [NFC]Tobias Grosser
llvm-svn: 246940
2015-07-17GPURuntimeDebugPrinter: Printer pointer values (except if they are strings)Tobias Grosser
Only pointer values in constant address space are assumed to be strings. For all other pointers their address is printed. llvm-svn: 242524
2015-07-06Print thread-identifiers in GPU debug outputTobias Grosser
This helps us to understand which thread prints which information. llvm-svn: 241452
2015-06-19Fix the clang -Werror build (-Wbraced-scalar-init)David Blaikie
llvm-svn: 240172
2015-06-19Add NVIDIA vprintf printing to RuntimeDebugBuilderTobias Grosser
2nd try, this time with the corresponding LLVM IRBuilder changes in place. llvm-svn: 240119
2015-06-08Revert "Add NVIDIA vprintf printing to RuntimeDebugBuilder"Tobias Grosser
This reverts commit 239219 which requires some LLVM changes I forgot to commit. Reported-by: Marshall Clow llvm-svn: 239306
2015-06-06Add NVIDIA vprintf printing to RuntimeDebugBuilderTobias Grosser
llvm-svn: 239219
2015-05-19Adapt to IRBuilder::CreateCall interface changeTobias Grosser
The IRBuilder::CreateCall interface was changed in r237624 and now requires an initializer list. llvm-svn: 237666
2015-05-09Sort include directivesTobias Grosser
Upcoming revisions of isl require us to include header files explicitly, which have previously been already transitively included. Before we add them, we sort the existing includes. Thanks to Chandler for sort_includes.py. A simple, but very convenient script. llvm-svn: 236930
2014-11-04Use argument type directly from fflush if available in translation unitTobias Grosser
When our RuntimeDebugBuilder calles fflush(NULL) to flush all output streams, it is important that the types we use in the call match the ones used in a declaration of fflush possible already available in the translation unit. As we just pass on a NULL pointer, the type of the pointer value does not really matter. However, as LLVM complains in case of mismatched types, we make sure to create a NULL pointer of identical type. No test case, as RuntimeDebugBuilder is not permanently used in Polly. Calls to it are until now only used to add informative output during debugging sessions. llvm-svn: 221251
2014-07-24[Refactor] Expose the runtime debug builderJohannes Doerfert
llvm-svn: 213908