Displaying 12 results from an estimated 12 matches for "functionast".
2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...res its argument names as well as if it is an operator.
class PrototypeAST {
std::string Name;
std::vector<std::string> Args;
public:
PrototypeAST(const std::string &name, const std::vector<std::string> &args)
: Name(name), Args(args) {}
Function *Codegen();
};
/// FunctionAST - This class represents a function definition itself.
class FunctionAST {
PrototypeAST *Proto;
ExprAST *Body;
public:
FunctionAST(PrototypeAST *proto, ExprAST *body)
: Proto(proto), Body(body) {}
Function *Codegen();
};
//===------------------------------------------------------------...
2010 Feb 17
0
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...r.
> class PrototypeAST {
> std::string Name;
> std::vector<std::string> Args;
> public:
> PrototypeAST(const std::string &name, const std::vector<std::string>
> &args)
> : Name(name), Args(args) {}
>
> Function *Codegen();
> };
>
> /// FunctionAST - This class represents a function definition itself.
> class FunctionAST {
> PrototypeAST *Proto;
> ExprAST *Body;
> public:
> FunctionAST(PrototypeAST *proto, ExprAST *body)
> : Proto(proto), Body(body) {}
>
> Function *Codegen();
> };
>
>
> //===-------...
2010 Feb 17
1
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...string Name;
>> std::vector<std::string> Args;
>> public:
>> PrototypeAST(const std::string &name, const std::vector<std::string>
>> &args)
>> : Name(name), Args(args) {}
>>
>> Function *Codegen();
>> };
>>
>> /// FunctionAST - This class represents a function definition itself.
>> class FunctionAST {
>> PrototypeAST *Proto;
>> ExprAST *Body;
>> public:
>> FunctionAST(PrototypeAST *proto, ExprAST *body)
>> : Proto(proto), Body(body) {}
>>
>> Function *Codegen();
>...
2010 Feb 07
3
[LLVMdev] Help with Mac OS X 10.6.2 build
...ymbols:
"llvm::SymbolTableListTraits<llvm::Instruction,
llvm::BasicBlock>::addNodeToList(llvm::Instruction*)", referenced
from:
BinaryExprAST::Codegen() in ccHkdHVT.o
BinaryExprAST::Codegen() in ccHkdHVT.o
CallExprAST::Codegen() in ccHkdHVT.o
FunctionAST::Codegen() in ccHkdHVT.o
llvm::IRBuilder<true,
llvm::ConstantFolder>::InsertHelper(llvm::Instruction*, llvm::Twine
const&) constin ccHkdHVT.o
"llvm::APFloat::APFloat(double)", referenced from:
NumberExprAST::Codegen() in ccHkdHVT.o
"llvm::BasicBloc...
2007 Nov 06
0
[LLVMdev] 'Implementing a language with LLVM' tutorial
...on Gray wrote:
>> Nice job. The only bit that is not immediately clear is the 'Proto'
>> variable, but is clear when looking through the code at the end of the
>> page.
>
> Where in the tutorial? What would you suggest that I say?
First reference in 'Function *FunctionAST::Codegen()'. What Proto is is not
totally clear till you look at the complete code at the end of the page. A
minor point.
>> Could do with a link to the LLVMBuilder class reference material.
>
> I added a link to the doxygen info, thanks!
It might be an idea to add a download li...
2008 Feb 22
1
[LLVMdev] tutorial typos
...class PrototypeAST {
std::string Name;
- std::vector< Args;
+ std::vector<std::string> Args;
public:
PrototypeAST(const std::string &name, const
std::vector<std::string> &args)
: Name(name), Args(args) {}
@@ -1132,7 +1132,7 @@ static FunctionAST *ParseDefinition() {
static FunctionAST *ParseTopLevelExpr() {
if (ExprAST *E = ParseExpression()) {
// Make an anonymous proto.
- PrototypeAST *Proto = new PrototypeAST("", std::vector<());
+ PrototypeAST *Proto = new PrototypeAST("",
std::vector<st...
2010 Feb 07
0
[LLVMdev] Help with Mac OS X 10.6.2 build
...istTraits<llvm::Instruction,
> llvm::BasicBlock>::addNodeToList(llvm::Instruction*)", referenced
> from:
> BinaryExprAST::Codegen() in ccHkdHVT.o
> BinaryExprAST::Codegen() in ccHkdHVT.o
> CallExprAST::Codegen() in ccHkdHVT.o
> FunctionAST::Codegen() in ccHkdHVT.o
> llvm::IRBuilder<true,
> llvm::ConstantFolder>::InsertHelper(llvm::Instruction*, llvm::Twine
> const&) constin ccHkdHVT.o
> "llvm::APFloat::APFloat(double)", referenced from:
> NumberExprAST::Codegen() in ccHkdH...
2016 Feb 16
4
[help] Kaleidoscope build fails after llvm-3.8
...teFunction(llvm::DIScope*, llvm::StringRef,
llvm::StringRef, llvm::DIFile*, unsigned int, llvm::DISubroutineType*,
bool, bool, unsigned int, unsigned int, bool,
llvm::MDTupleTypedArrayWrapper<llvm::DITemplateParameter>,
llvm::DISubprogram*)", referenced from:
(anonymous namespace)::FunctionAST::codegen() in toy-1f302b.o
"vtable for llvm::PHINode", referenced from:
llvm::IRBuilder<true, llvm::ConstantFolder,
llvm::IRBuilderDefaultInserter<true> >::CreatePHI(llvm::Type*, unsigned
int, llvm::Twine const&) in toy-1f302b.o
NOTE: a missing vtable usually mea...
2010 Jan 04
4
[LLVMdev] Getting Kaleidoscope to compile
...function ‘llvm::Function* PrototypeAST::Codegen()’:
toy.cpp:407: error: ‘getDoubleTy’ is not a member of ‘llvm::Type’
toy.cpp:407: error: ‘getGlobalContext’ was not declared in this scope
toy.cpp:408: error: ‘getDoubleTy’ is not a member of ‘llvm::Type’
toy.cpp: In member function ‘llvm::Function* FunctionAST::Codegen()’:
toy.cpp:454: error: ‘getGlobalContext’ was not declared in this scope
toy.cpp: In function ‘int main()’:
toy.cpp:543: error: ‘LLVMContext’ was not declared in this scope
toy.cpp:543: error: ‘Context’ was not declared in this scope
toy.cpp:543: error: ‘getGlobalContext’ was not declared...
2007 Nov 05
5
[LLVMdev] 'Implementing a language with LLVM' tutorial
On Mon, 5 Nov 2007, Aaron Gray wrote:
>> Anyone have thoughts or feedback? :)
>
> Nice job. The only bit that is not immediately clear is the 'Proto'
> variable, but is clear when looking through the code at the end of the page.
Where in the tutorial? What would you suggest that I say?
> Could do with a link to the LLVMBuilder class reference material.
I added a link
2010 Jan 04
0
[LLVMdev] Getting Kaleidoscope to compile
...ction* PrototypeAST::Codegen()’:
> toy.cpp:407: error: ‘getDoubleTy’ is not a member of ‘llvm::Type’
> toy.cpp:407: error: ‘getGlobalContext’ was not declared in this scope
> toy.cpp:408: error: ‘getDoubleTy’ is not a member of ‘llvm::Type’
> toy.cpp: In member function ‘llvm::Function* FunctionAST::Codegen()’:
> toy.cpp:454: error: ‘getGlobalContext’ was not declared in this scope
> toy.cpp: In function ‘int main()’:
> toy.cpp:543: error: ‘LLVMContext’ was not declared in this scope
> toy.cpp:543: error: ‘Context’ was not declared in this scope
> toy.cpp:543: error: ‘getGlobal...
2010 Jan 04
2
[LLVMdev] Getting Kaleidoscope to compile
...AST::Codegen()’:
>> toy.cpp:407: error: ‘getDoubleTy’ is not a member of ‘llvm::Type’
>> toy.cpp:407: error: ‘getGlobalContext’ was not declared in this scope
>> toy.cpp:408: error: ‘getDoubleTy’ is not a member of ‘llvm::Type’
>> toy.cpp: In member function ‘llvm::Function* FunctionAST::Codegen()’:
>> toy.cpp:454: error: ‘getGlobalContext’ was not declared in this scope
>> toy.cpp: In function ‘int main()’:
>> toy.cpp:543: error: ‘LLVMContext’ was not declared in this scope
>> toy.cpp:543: error: ‘Context’ was not declared in this scope
>> toy.cpp:54...