[LLVMdev] DEBUG_TYPE

Philip Reames listmail at philipreames.com
Fri Jul 3 13:57:37 PDT 2015


So far, nothing you've said sounds particularly problematic.  Can you 
take a step back and spell out the problem you're trying to solve?

p.s. Look at any of the transform/scalar passes (along with many other 
places) for examples of usage.

Philip

On 07/03/2015 01:55 PM, Peter Finn wrote:
> Okay then, how should I define it?
>
> Peter
>
> Sent from my iPhone
>
>> On Jul 3, 2015, at 4:53 PM, Philip Reames <listmail at philipreames.com> wrote:
>>
>> No.  DEBUG_TYPE is used for grouping debug output and statistics.  The DEBUG_TYPE belongs in the source file.  The fact it's in the other headers is suspicious and might be worth checking on.
>>
>> Philip
>>
>>> On 07/03/2015 01:09 PM, Peter Finn wrote:
>>> In include/llvm/ADT/Statistic.h, the identifier “DEBUG_TYPE” is never defined.  I’ve noticed it’s defined as different things in a few other header files, including llvm/Analysis/BlockFrequencyInfoImpl.h, llvm/Analysis/RegionInfoImpl.h, llvm/Support/UnicodeCharRanges.h, llvm/Transforms/InstCombine/InstCombineWorkList.h, and llvm/Transforms/Utils/SSAUpdaterImpl.h.  Should I edit Statistic.h so that it includes one of those?  If so, which one?  If not, what should I do?
>>>
>>> Thanks,
>>> Peter Finn
>>> _______________________________________________
>>> LLVM Developers mailing list
>>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list