search for: fty

Displaying 20 results from an estimated 101 matches for "fty".

Did you mean: fts
2015 Dec 03
3
Function attributes for LibFunc and its impact on GlobalsAA
----- Original Message ----- > From: "James Molloy via llvm-dev" <llvm-dev at lists.llvm.org> > To: "Vaivaswatha Nagaraj" <vn at compilertree.com> > Cc: "LLVM Dev" <llvm-dev at lists.llvm.org> > Sent: Thursday, December 3, 2015 4:41:46 AM > Subject: Re: [llvm-dev] Function attributes for LibFunc and its impact on GlobalsAA > >
2012 Jul 26
1
[LLVMdev] Calling a function with bad signature, possible bug.
...ng a function with bad signature", when my pass inserts a call to this function. But I don't have any problems with my pass if I run clang -emit-llvm -S, then llc and then gcc. With this approach I get a binary with my instrumentation inserted. This line causes a problem - assert((i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"); I tried to get a dump of FTy->getParamType(i) and Args[i]->getType(), but I wasn't able to do it in gdb - everytime I create...
2013 Feb 25
2
[LLVMdev] Queries regarding function's arguments data type
...Check data type of each argument of the argument list of the function. 2. Based on its data type like character array or integer array, pointer, int, char, take different action. 3. I have added following code to check its data type. // F is any function basically of type function * FunctionType *FTy = F->getFunctionType(); unsigned int numArgs = FTy->getNumParams(); //Currently just checking data type of the 0th argument. Eventually will be running it in the loop from 0 to numArgs. errs() << "\n1 Argument type int 32 : " << FTy->getParamType(0)->isIntegerTy...
2014 May 18
1
[PATCH 1/2] nv50/ir: fix s32 x s32 -> high s32 multiply logic
...that this sort of splitting doesn't work for signed values, so we +// compute the sign on those manually and then perform an unsigned multiply. static bool expandIntegerMUL(BuildUtil *bld, Instruction *mul) { const bool highResult = mul->subOp == NV50_IR_SUBOP_MUL_HIGH; - DataType fTy = mul->sType; // full type - DataType hTy; + DataType fTy; // full type + switch (mul->sType) { + case TYPE_S32: fTy = TYPE_U32; break; + case TYPE_S64: fTy = TYPE_U64; break; + default: fTy = mul->sType; break; + } + + DataType hTy; // half type switch (fTy) { - case...
2006 Sep 02
2
[LLVMdev] gfortran calling convention
...statments scalarized array operations function calls with *no arguments* simple common blocks Function calls with more than one argument don't work. Specifically: ..../gfortran funccall-1arg.f -o funccall-1arg.exe ..../llvm/lib/VMCore/Instructions.cpp:209: failed assertion `(Params.size() == FTy->getNumParams() || (FTy->isVarArg() && Params.size() > FTy->getNumParams())) && "Calling a function with bad signature!"' funccall-1arg.f: In function 'MAIN__': funccall-1arg.f:5: internal compiler error: Abort trap Please submit a full bug report,...
2013 Feb 25
0
[LLVMdev] Queries regarding function's arguments data type
...ment; it does not represent what the type of the actual memory object passed into the function will be. A caller can cast a pointer of one structure type to a different structure type and pass that into a function. > > // F is any function basically of type function * > FunctionType *FTy = F->getFunctionType(); > unsigned int numArgs = FTy->getNumParams(); > > //Currently just checking data type of the 0th argument. Eventually > will be running it in the loop from 0 to numArgs. > errs() << "\n1 Argument type int 32 : " << > FTy->ge...
2006 Sep 02
0
[LLVMdev] gfortran calling convention
...; function calls with *no arguments* > simple common blocks Great! > Function calls with more than one argument don't work. Specifically: > > ..../gfortran funccall-1arg.f -o funccall-1arg.exe > ..../llvm/lib/VMCore/Instructions.cpp:209: failed assertion > `(Params.size() == FTy->getNumParams() || (FTy->isVarArg() && > Params.size() > FTy->getNumParams())) && "Calling a function with bad > signature!"' > funccall-1arg.f: In function 'MAIN__': > funccall-1arg.f:5: internal compiler error: Abort trap > Please s...
2009 Oct 27
3
[LLVMdev] llvmgcc ToT broken
The first buildbot failure I can readily find was Monday, 26oct2009 around 7PM PDT. The assertion is Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i) == Params[i]->getType()) && "Calling a function with a bad signature!"), function init, file /Volumes/Sandbox/Buildbot/llvm/ build.llvm-gcc-x86_64-darwin10-selfhost/llvmCore.roots/llvmCore~obj/ src/lib/VMCore/Instructions.cpp,...
2013 Jan 03
2
[LLVMdev] Opt error
...nt a simple C program then I get the following exception: $ opt -o a.bc -load /data/llvm3.1/Release+Asserts/lib/Dat.so -MyPass < malloc.bc opt: Instructions.cpp:269: void llvm::CallInst::init(llvm::Value*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&): Assertion `(Args.size() == FTy->getNumParams() || (FTy->isVarArg() && Args.size() > FTy->getNumParams())) && "Calling a function with bad signature!"' failed. In older llvm, I had the following line: CallInst::Create(func, Opts, Opts , "", newBB); Which I have now modified f...
2010 Sep 21
1
reshape is re-ordering my variables
...nths: int 99999 0 99999 99999 99999 99999 99999 99999 99999 99999 ... This data frame needs to be converted to long format with 5 variables repeating over 4 observations. > rcl <- reshape(rcw,idvar="ICU",varying=2:21,direction="long",v.names=c("init","FTy","FTm","PTy","PTm")) > str(rcl) 'data.frame': 92 obs. of 7 variables: $ ICU : int 1 18 17 9 22 19 6 16 25 26 ... $ time: int 1 1 1 1 1 1 1 1 1 1 ... $ init: int 0 0 0 0 0 0 0 6 0 0 ... $ FTy : int 0 8 12 3 9 1 5 16 5 5 ... $ FTm : int...
2008 Feb 05
1
[LLVMdev] Problem Building llvm-gcc 4.2
Dear All, I'm getting the following error building mainline llvm-gcc 4.2 (LLVM and llvm-gcc are up to date): cc1: /home/vadve/criswell/src/llvm22/lib/VMCore/Instructions.cpp:290: void llvm::CallInst::init(llvm::Value*, llvm::Value*): Assertion `(FTy->getNumParams() == 1 || (FTy->isVarArg() && FTy->getNumParams() == 0)) && "Calling a function with bad signature"' failed. Is anyone else seeing this? I get a similar error when compiling mainline llvm-gcc 4.0. -- John T.
2010 Jun 03
5
[LLVMdev] Why asserts don't provide much information?
When for example some call is wrong error message always looks like this: Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i) == Params[i]->getType()) && "Calling a function with a bad signature!"), function init, file /tmp/llvm-svn/llvm/lib/VMCore/Instructions.cpp, line 247. I believe assert() statements should better be replaced with more detailed p...
2013 Jan 07
1
[LLVMdev] Question on using GlobalVariable as function pointer
Hi everyone, I am trying to have an call instruction that calls global variable The first thing I do is gv = new llvm::GlobalVariable( *(tb->getModule()), fty, false,GlobalValue::InternalLinkage,0, "",0,0,0); fty : i32 ({ i32, [32 x i32] }*) I get stuck here, the fifth argument is the initializer which is a LLVM Constant, I do not know how to describe a function pointer as a constant....
2009 Sep 06
3
[LLVMdev] Equivalent types
Hi! I have this error while building my code: Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i) == Params[i]->getType()) && "Calling a function with a bad signature!") Actually I'm trying to load functions from .bc file and use them in the code that I'm building with IRBuilder. I found that function parameter type is...
2011 Sep 16
2
[LLVMdev] How to duplicate a function?
...port/raw_ostream.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/BasicBlock.h" #include "llvm/Support/Debug.h" #include "llvm/Support/CallSite.h" using namespace llvm; namespace { Constant *f; Function *Fn; FunctionType *FTy; Type *RetTy; std::vector<Type*> Params; class DP : public FunctionPass { public: static char ID; DP() : FunctionPass(ID) {} virtual bool doInitialization(Module &M); virtual bool runOnFunction(Function &F); virtual bool doF...
2008 Jun 25
2
T and P Statistics
How do you calculate T and P statistics (T- test) in R? Is there a package out there that can do these calculations? Best, Michael Tong Futures Associate Quantitative Research Services Franklin Templeton Investments, Inc. 600 Fifth Ave New York, NY 10020 (212) 632-4254 mtong@templeton.com Notice: All email and instant messages (including attachments) sent to or from Franklin Templeton
2010 Apr 28
1
[LLVMdev] Constructing a varargs CallInst
...use CallInst::Create to construct a call to a variadic function, and I'm running into the following assertion failure: /localhome/simmon12/workspace/llvm-sources/lib/VMCore/Instructions.cpp:297: void llvm::CallInst::init(llvm::Value*, llvm::Value* const*, unsigned int): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Params[i]->getType()) && "Calling a function with a bad signature!"' failed. I'm using the version of CallInst taking the beginning and end iterators of a vector<Value*>. I made sure to mark the function declara...
2010 Oct 06
3
[LLVMdev] dragonegg vs -ffast-math?
...irm this is in fact fixed in current dragonegg svn. On a different question, what are the prospects getting aermod to compile under dragonegg? I am still seeing compile failures of the form... de-gfortran45 -ffast-math -funroll-loops -msse3 -O3 aermod.f90 -o aermod Assertion failed: ((NumParams == FTy->getNumParams() || (FTy->isVarArg() && NumParams > FTy->getNumParams())) && "Calling a function with bad signature!"), function init, file /sw/src/fink.build/llvm-clang-2.8-1/llvm-2.8/lib/VMCore/Instructions.cpp, line 242. *** WARNING *** there are active plugi...
2013 Jan 03
0
[LLVMdev] Opt error
...get the following exception: > > $ opt -o a.bc -load /data/llvm3.1/Release+Asserts/lib/Dat.so -MyPass < malloc.bc > > opt: Instructions.cpp:269: void llvm::CallInst::init(llvm::Value*, > llvm::ArrayRef<llvm::Value*>, const llvm::Twine&): Assertion `(Args.size() == > FTy->getNumParams() || (FTy->isVarArg() && Args.size() > FTy->getNumParams())) > && "Calling a function with bad signature!"' failed. > > In older llvm, I had the following line: > > *CallInst::Create(func, Opts, Opts , "", newBB);* &gt...
2008 Jun 23
2
Correlation Help
Hi, I have recently been using the R program and encountered a recurring problem. I have been trying calculate the correlation of a 16 column table. Everytime I type in cor(test), where test is data that I uploaded into R using the read.table function, I get an error: Error in cor(test) : missing observations in cov/cor In addition: Warning message: In cor(test) : NAs introduced by coercion