[hellogcc] Re: [hellogcc] Re: Re: Re: Re: [投稿] LLVM Introduction - How to use JIT 2/3

  • From: Liu <proljc@xxxxxxxxx>
  • To: hellogcc@xxxxxxxxxxxxx
  • Date: Sat, 22 Oct 2011 23:30:48 +0800

2011/10/22 ???f任 <chenwj@xxxxxxxxxxxxxx>:
>> > --------------------- include/llvm/Module.h ---------------------------
>> > class Module {
>> > public:
>> >  typedef iplist<GlobalVariable> GlobalListType;
>> >  typedef iplist<Function> FunctionListType;
>> >  typedef iplist<GlobalAlias> AliasListType;
>> >
>> >  Constant *getOrInsertFunction(StringRef Name, const FunctionType *T,
>> >                                AttrListPtr AttributeList);
>> >
>> >  Constant *getOrInsertFunction(StringRef Name, const FunctionType *T);
>> >
>> > private:
>> >  FunctionListType FunctionList;  ///< The Functions in the module
>> > -----------------------------------------------------------------------
>> >
>>
>> 对,就是这样,类似C++的class。
>
>  我想它就是 C++ 的 class。我不知道你?槭????X得它是 "类似C++的class"。
> LLVM 基本是用 C++ ???F,但是????一些 C++ 的特性不用,例如 RTTI。?@有
> 它的考量在。[1]
>

所以我才说 类似 ,子集,其实无所谓啦,一个说法而已,又不是法律条文。

>> C++还有隐式构造函数等等,llvm里面都是显式的。对C++的处理确实很难。
>
>  的?_,??好 C++ 不容易。???x LLVM 代?a可以多?W一?c。XD
>

恩,确实可以通过看IR明白一些C++编译器的工作情况。

> [1]
> http://stackoverflow.com/questions/5134975/what-can-make-c-rtti-undesirable
>
> --
> Wei-Ren Chen (???f任)
> Computer Systems Lab, Institute of Information Science,
> Academia Sinica, Taiwan (R.O.C.)
> Tel:886-2-2788-3799 #1667
>
>

Other related posts:

  • » [hellogcc] Re: [hellogcc] Re: Re: Re: Re: [投稿] LLVM Introduction - How to use JIT 2/3 - Liu