Displaying 2 results from an estimated 2 matches for "vector<".
2008 Feb 22
1
[LLVMdev] tutorial typos
There were some typos in the tutorial. This patch should fix them:
index b7f968b..50619e0 100644
--- a/docs/tutorial/LangImpl2.html
+++ b/docs/tutorial/LangImpl2.html
@@ -933,7 +933,7 @@ public:
/// of arguments the function takes).
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 *Par...
2013 Sep 20
0
[LLVMdev] Passing Arguments to External Function Call in llvm pass
I have a external function which is like this :-
void foo(int num, ...)
{
va_list arguments;
va_start(arguments,num);
for(int x=0;x<num;x++)
{
long long *oprnd=va_arg ( arguments, long long* );
}
va_end ( arguments );
}
And on llvm pass i have one vector of Value* (i.e. vector<Value*> vect).
which basically contains getoperand(0) of all Load instruction present on
some test program.
eg.
load i32* %a, align 4
vect.push_back(getoperand(0))
load i32* %b, align 4
vect.push_back(getoperand(0)) . So on.
Now How can I pass this vec...