search for: callingconvention

Displaying 7 results from an estimated 7 matches for "callingconvention".

2006 Nov 27
1
R.DLL mapping by P/Invoke
...namespace SharpR { /// <summary> /// Class for interp with the R.DLL. All is static as R is mono-threaded. /// </summary> class RWrapper { #region <R.DLL interop signatures> //- DLL Management/Information [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] [return: MarshalAs(UnmanagedType.LPStr)] static extern string getDLLVersion(); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] [return: MarshalAs(UnmanagedTy...
2007 Oct 17
0
Using R.dll in .NET IPC
...espace SharpR { /// <summary> /// Class for interp with the R.DLL. All is static as R is mono-threaded. /// </summary> class RWrapper { #region <R.DLL interop signatures> //- DLL Management/Information [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] [return: MarshalAs(UnmanagedType.LPStr)] static extern string getDLLVersion(); [DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)] [return: MarshalAs(UnmanagedTy...
2009 May 06
3
[LLVMdev] Pointer vs. integer: backend troubles
...nctions be passed in address registers instead of general-purpose registers. As LLVM internally converts all pointers to integers (in my case i32), there is no way for a backend to tell whether an i32 operand is really an integer or actually a pointer. Thus neither the instruction selection nor the CallingConvention stuff works for me as expected. It does not seem possible to solve this problem without modifying at least some of the original LLVM source code. So what would be the easiest (and least invasive) way to achieve this? I have thought about adding a new ValueType (say, "p32") and overriding...
2013 May 09
0
[LLVMdev] Backend calling convention: when pointer differs from integer
...ved this issue by annotating EVT, although no more detail is given and the backend is not available TriCore backend was developed in 2009, before LLVM2.6. Is there support for this in newer LLVM versions? Is there any example on how this was solved or any one faced this problem later? Can I use the CallingConvention.td or the compatibility is impossible? Thanks, Pedro Malagon -- Pedro Malagón - Profesor ayudante 91 549 57 00 - ext. 4220 Departamento de Ingeniería Electrónica Escuela Técnica Superior de Ingenieros de Telecomunicación Universidad Politécnica de Madrid
2018 Aug 08
2
Passing arguments to var args function
...something more clean, I was wondering how the community would accept a change in the TD, if the code at CallinvConvLower.cpp:138 would've passed the IsFixed flag to the AssignFn then all those workarounds wouldn't be needed, this example is only one of a few I can think of for expanding the CallingConvention tablegen capabilities regarding this issue. Thanks for the answer. On Wed, Aug 8, 2018 at 4:21 PM, Tim Northover <t.p.northover at gmail.com> wrote: > Hi Liad, > > On Wed, 8 Aug 2018 at 13:28, Liad Mordekoviz via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > Di...
2018 Aug 08
2
Passing arguments to var args function
Hey, I am working on a new back-end, in my back end, I require to pass every argument through a register when calling a function, unless the argument is part of the ellipsis (...) and then pass it through the stack, I've tried creating a CCCustom function to analyze the operands when a function has var args, however, the information whether the out val is fixed or not is not passed into the
2007 Aug 09
1
[LLVMdev] Tail call optimization thoughts
...nvention (maybe use the current CallingConv::Fast, or create a CallingConv::TailCall) 1.) lowering of formal arguments like for example x86_LowerCCCArguments in stdcall mode we need to make sure that later mentioned CALL_CLOBBERED_REG is not used (remove it from available registers in callingconvention for argument passing?) 2.)lowering of the call: *if it can be shown that call really is tail call (next instruction is a return): -move the arguments to the correct position on the stack -create a REALTAILCALL SelDAG node holding tailcallee : if the tailcallee is dynamic, n...