Displaying 4 results from an estimated 4 matches for "functy_3".
2012 Jun 17
3
[LLVMdev] BlockAddress instruction is copied instead of cloned during module link?
...t;x86_64-unknown-freebsd8.2");
// Type Definitions
PointerType* PointerTy_1 =
PointerType::get(IntegerType::get(mod->getContext(), 8), 0);
ArrayType* ArrayTy_0 = ArrayType::get(PointerTy_1, 3);
PointerType* PointerTy_2 = PointerType::get(ArrayTy_0, 0);
std::vector<Type*>FuncTy_3_args;
FuncTy_3_args.push_back(IntegerType::get(mod->getContext(), 32));
FunctionType* FuncTy_3 = FunctionType::get(
/*Result=*/PointerTy_1,
/*Params=*/FuncTy_3_args,
/*isVarArg=*/false);
PointerType* PointerTy_4 = PointerType::get(PointerTy_1, 0);
// Function Declarations...
2011 Apr 26
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
Hi Nabila,
> where did the "noalias" attribute and "tail call" (rather than "call") come
> from? Are you setting these yourself or running some optimization pass after
> your pass?
>
>
> i have written a module pass and i have compiled it and then
you didn't answer my questions, you just repeated what you said before.
Ciao,
2011 Apr 26
1
[LLVMdev] inserting a fucntion call at the end of basic bloc
...e2 <
hello.bc > /dev/null
i put this
opt -load /home/inspiron/PhdWork/llvm-2.8/Release/lib/Example.so -Example2 <
hello.bc > hello2.bc
the declaration is:
PointerType* PointerTy_0 = PointerType::get(IntegerType::get(M.getContext(),
32), 0);
std::vector<const Type*>FuncTy_3_args;
FuncTy_3_args.push_back(IntegerType::get(M.getContext(), 32));
FuncTy_3_args.push_back(PointerTy_0);
FunctionType* FuncTy_3 = FunctionType::get(
/*Result=*/Type::getVoidTy(M.getContext()),
/*Params=*/FuncTy_3_args,...
2011 Apr 26
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
2011/4/26 Duncan Sands <baldrick at free.fr>
> Hi Nabila,
>
> Now when i tried this pass an error says:
>> Wrong type for attribute noalias
>> tail call void @consume(i32 noalias 3, i32* @y) nounwind
>>
>>
>> noalias is only for arguments of pointer type. You probably meant it
>> to
>> be on the second argument