[LLVMdev] Discrepancies in LLVM sources

Eli Friedman eli.friedman at gmail.com
Sat Sep 17 23:28:38 PDT 2011


On Sat, Sep 17, 2011 at 11:08 PM, Yuri <yuri at rawbw.com> wrote:
> On 09/17/2011 21:53, Eli Friedman wrote:
>>
>> Yes; we don't make any sort of guarantee about that, and such a
>> guarantee is not necessary for correctness.
>
> Aren't values in Core.h supposed to be used by users of API and they should
> match enums, or what they are for then? What are they matched against?

The enums in Core.h are for the API in Core.h.  Is there some specific
issue you are running into?

>>> >  Also, llvm/Support/TargetRegistry.h and llvm/Target/TargetRegistry.h
>>> >  define two different version of some classes, particularly
>>> > llvm::Target.
>>> >  Fields with the same names have different offsets.
>>> >  Are they intended to be different, and if yes, why?
>>
>> llvm/Target/TargetRegistry.h does not exist on trunk.
>
>
> r139992 (trunk from 2 hours ago) installs both:
> [root at myhost /usr/local/llvm/svn-r139992]# find . -name TargetRegistry.h
> ./include/llvm/Target/TargetRegistry.h
> ./include/llvm/Support/TargetRegistry.h

http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/
says it doesn't exist...

-Eli




More information about the llvm-dev mailing list