Displaying 11 results from an estimated 11 matches for "namedregiontimer".
2011 May 09
2
[LLVMdev] How does Timer work?
I slightly modified the Kaleidoscope example to print the timing data using
the NamedRegionTimer as below:
// Run the main "interpreter loop" now.
{
const char *GroupName = "MainLoop";
NamedRegionTimer T("Kaleidoscope", GroupName, true);
MainLoop();
}
My assumption was that when T goes out of scope, it will emit the data on
the command line. But I se...
2016 Nov 17
2
NamedRegionTimer - printing structured data, full nanosecond resolution values
Hi all,
I'd like to output structured data for all of the gathered timers with the full nanosecond numbers to a file, say JSON for example. Does the timer infrastructure support this, or at least installing some custom print handlers? If not, does any of that sound like an interesting patch?
David
2011 May 10
0
[LLVMdev] How does Timer work?
ping.
On Mon, May 9, 2011 at 10:20 PM, Sanjiv <llvmdev at gmail.com> wrote:
> I slightly modified the Kaleidoscope example to print the timing data using
> the NamedRegionTimer as below:
>
> // Run the main "interpreter loop" now.
> {
> const char *GroupName = "MainLoop";
> NamedRegionTimer T("Kaleidoscope", GroupName, true);
> MainLoop();
> }
>
> My assumption was that when T goes out of scope, it will...
2020 Oct 26
5
TableGen -time-regions option
I'm pondering a new timing feature for TableGen and am wondering whether anyone uses the existing -time-regions option. Some instrumentation for it appears in CodeGenTarget.cpp and GICombinerEmitter.cpp but nowhere else. If no one is using it, I'll be tempted to remove it.
2009 May 20
2
[LLVMdev] [PATCH] Add new phase to legalization to handle vector operations
...deGen/SelectionDAG/SelectionDAGISel.cpp (revision 72159)
+++ lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (working copy)
@@ -611,6 +611,36 @@
DOUT << "Optimized type-legalized selection DAG:\n";
DEBUG(CurDAG->dump());
}
+
+ if (TimePassesIsEnabled) {
+ NamedRegionTimer T("Vector Legalization", GroupName);
+ Changed = CurDAG->LegalizeVectors();
+ } else {
+ Changed = CurDAG->LegalizeVectors();
+ }
+
+ if (Changed) {
+ if (TimePassesIsEnabled) {
+ NamedRegionTimer T("Type Legalization 2", GroupName);
+...
2009 May 20
0
[LLVMdev] [PATCH] Add new phase to legalization to handle vector operations
...deGen/SelectionDAG/SelectionDAGISel.cpp (revision 72159)
+++ lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (working copy)
@@ -611,6 +611,36 @@
DOUT << "Optimized type-legalized selection DAG:\n";
DEBUG(CurDAG->dump());
}
+
+ if (TimePassesIsEnabled) {
+ NamedRegionTimer T("Vector Legalization", GroupName);
+ Changed = CurDAG->LegalizeVectors();
+ } else {
+ Changed = CurDAG->LegalizeVectors();
+ }
+
+ if (Changed) {
+ if (TimePassesIsEnabled) {
+ NamedRegionTimer T("Type Legalization 2", GroupName);
+...
2020 Nov 14
0
TableGen -time-regions option
...ad but I added the existing -time-regions option when I was debugging a particularly nasty perf problem in TableGen. I really only use it when we have a perf problem downstream.
The main thing I was getting out of it was the ability to annotate periods of time in Xcode Instruments just by adding a NamedRegionTimer to the right function/block (see https://reviews.llvm.org/rGe1414d176048c1f24fc3f54bb923fb48a2b985a3). That helped me track down the work that was taking the time and let me filter out the noise from elsewhere so I could look at the relevant memory allocations+churn. Feel free to change it but I...
2007 Dec 12
0
[LLVMdev] opt does not load poolalloc
...==
--- lib/PoolAllocate/PoolAllocate.cpp (revision 44934)
+++ lib/PoolAllocate/PoolAllocate.cpp (working copy)
@@ -45,6 +45,9 @@
const Type *PoolAllocate::PoolDescPtrTy = 0;
+char PoolAllocate::ID = 0;
+char PoolAllocatePassAllPools::ID = 0;
+
#if 0
#define TIME_REGION(VARNAME, DESC) \
NamedRegionTimer VARNAME(DESC)
@@ -647,9 +650,9 @@
DSNode *N = I;
if (
#ifdef BOUNDS_CHECK
- (N->isArray() ||
-#endif
- (N->isHeapNode()))
+ N->isArray() ||
+#endif
+ N->isHeapNode())
if (GlobalsGraphNodeMapping.count(N)) {
// If it is a global pool, set up the pool desc...
2009 May 21
0
[LLVMdev] [PATCH] Add new phase to legalization to handle vector operations
On Wed, May 20, 2009 at 4:55 PM, Dan Gohman <gohman at apple.com> wrote:
> Can you explain why you chose the approach of using a new pass?
> I pictured removing LegalizeDAG's type legalization code would
> mostly consist of finding all the places that use TLI.getTypeAction
> and just deleting code for handling its Expand and Promote. Are you
> anticipating something more
2009 May 20
2
[LLVMdev] [PATCH] Add new phase to legalization to handle vector operations
On May 20, 2009, at 1:34 PM, Eli Friedman wrote:
> On Wed, May 20, 2009 at 1:19 PM, Eli Friedman
> <eli.friedman at gmail.com> wrote:
>
>> Per subject, this patch adding an additional pass to handle vector
>>
>> operations; the idea is that this allows removing the code from
>>
>> LegalizeDAG that handles illegal types, which should be a significant
2009 May 21
2
[LLVMdev] [PATCH] Add new phase to legalization to handle vector operations
...deGen/SelectionDAG/SelectionDAGISel.cpp (revision 72159)
+++ lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (working copy)
@@ -611,6 +611,36 @@
DOUT << "Optimized type-legalized selection DAG:\n";
DEBUG(CurDAG->dump());
}
+
+ if (TimePassesIsEnabled) {
+ NamedRegionTimer T("Vector Legalization", GroupName);
+ Changed = CurDAG->LegalizeVectors();
+ } else {
+ Changed = CurDAG->LegalizeVectors();
+ }
+
+ if (Changed) {
+ if (TimePassesIsEnabled) {
+ NamedRegionTimer T("Type Legalization 2", GroupName);
+...