search for: prev_iter

Displaying 6 results from an estimated 6 matches for "prev_iter".

2012 Dec 17
4
[LLVMdev] BasicBlock back()
...ck_8h_source.html#l00199>of file BasicBlock.h <http://llvm.org/doxygen/BasicBlock_8h_source.html>.) 2. I also tried : bool patternDC::runOnBasicBlock(BasicBlock &BB) { ... BasicBlock::const_iterator I = BB.begin(); BasicBlock::const_iterator E = BB.end(); BasicBlock::const_iterator prev_iter,last_iter; prev_iter = NULL; last_iter = NULL; for(;I!=E;I++){ prev_iter = last_iter; last_iter = I; } if(prev_iter){ errs() << "prev_iter: " << *(dyn_cast<Instruction>(prev_iter)) << "\n"; } if(last_iter){ errs() << "last_iter:...
2012 Dec 17
0
[LLVMdev] BasicBlock back()
...equired to have a TerminatorInst as their last instruction). > > > > 2. I also tried : > > bool patternDC::runOnBasicBlock(BasicBlock &BB) { > ... > BasicBlock::const_iterator I = BB.begin(); > BasicBlock::const_iterator E = BB.end(); > BasicBlock::const_iterator prev_iter,last_iter; > prev_iter = NULL; last_iter = NULL; > for(;I!=E;I++){ > prev_iter = last_iter; > last_iter = I; > } > if(prev_iter){ > errs() << "prev_iter: " << *(dyn_cast<Instruction>(prev_iter)) << > "\n"; > } >...
2012 Dec 18
1
[LLVMdev] BasicBlock back()
...ve a TerminatorInst as their last instruction). > > > > > > > 2. I also tried : > > bool patternDC::runOnBasicBlock(BasicBlock &BB) { > ... > BasicBlock::const_iterator I = BB.begin(); > BasicBlock::const_iterator E = BB.end(); > BasicBlock::const_iterator prev_iter,last_iter; > prev_iter = NULL; last_iter = NULL; > for(;I!=E;I++){ > prev_iter = last_iter; > last_iter = I; > } > if(prev_iter){ > errs() << "prev_iter: " << *(dyn_cast<Instruction>(prev_iter)) << "\n"; > } > if(las...
2015 Jun 08
2
[PATCH RFC 05/20] pm: reorganize the nvif interface
...&(struct nvif_perfctr_v0) { > - }, sizeof(struct nvif_perfctr_v0), &object); > + NVIF_IOCTL_NEW_V0_PERFMON, NULL, 0, &object); > assert(ret == 0); > do { > u32 prev_iter = args.iter; > > args.name[0] = '\0'; > - ret = nvif_mthd(&object, NVIF_PERFCTR_V0_QUERY, &args, sizeof(args)); > + ret = nvif_mthd(&object, NVIF_PERFMON_V0_QUERY_SIGNAL, > + &args, size...
2015 Jun 07
21
[PATCH RFC 00/20] expose global performance counters
Hello, This series exposes global performance counters (PCOUNTER) to the userspace through the nvif interface by reworking most of the code related to the PM engine. This interface will allow the userspace to control and monitor complex hardware events like the proprietary driver already does, for example with CUPTI and PerfKit. For now, this series only exposes performance counters on NV50,
2015 Jun 22
12
[RFC PATCH 0/8] nv50: expose global performance counters
Hello there, This series exposes NVIDIA's global performance counters for Tesla through the Gallium's HUD and the GL_AMD_performance_monitor extension. This adds support for 24 hardware events which have been reverse engineered with PerfKit (Windows) and CUPTI (Linux). These hardware events will allow developers to profile OpenGL applications. To reduce latency and to improve accuracy,