Displaying 6 results from an estimated 6 matches for "funcb".
Did you mean:
func
2014 Sep 28
1
Using requireNamespace() instead of require()
Suppose I have a function funcA() in package pkgA that requires function funcB() from another package pkgB under certain circumstances. Those circumstances are rare though, so I put package pkgB under 'Suggests', and use this in funcA() when those circumstances do arise:
if (require("pkgB", quietly=TRUE)) {
pkgB::funcB(...)
} else {
stop("Please...
2010 Jan 06
0
[LLVMdev] [Help] How can we call an object's virtual function inside IR?
...the discussion is archived which may help in the future
if someone else has the same question.
If LLVM IR cannot access the member
> function of a class. If it is not supported, we can change class
> member functions like a c function. For example, ClassA->funca () can
> be created as funcb(&ClassA ) -a C style function. Then we need to
> call funcb from inside LLVM IR.
>
> Will that be possible?
> I tried to search web and documents, but really couldn't find it.
>
> [[a [10.00]] > [3.00]]
> ; ModuleID = 'ExprF'
>
> define i1 @expr(doub...
2010 Jan 05
5
[LLVMdev] [Help] How can we call an object's virtual function inside IR?
Dear experts,
I am learning llvm by reading documents and have a question to ask.
The following is the example of code generation that I created.
[[a [10.00]] > [3.00]]
; ModuleID = 'ExprF'
define i1 @expr(double* %record) {
entry:
%0 = getelementptr double* %record, i32 0 ;
<double*> [#uses=1]
%1 = load double* %0 ; <double>
2017 Jan 12
2
RFC: Dynamically Allocated "Callee Saved Registers" Lists
...guments from the regmask (According to the calling convention).
IPRA and CC updated RegMask can’t use the same mechanism because they contradict each other.
I think that the following analog will help to explain why I think that a reuse is redundant:
Let’s assume two different functions (FuncA and FuncB) need to allocate an array of items of type X.
FuncA allocates XarrayA that contains all X items that are big.
FuncB allocates XarrayB that contains all X items that are square shaped.
Should both of them use the same array?!
I think that they shouldn’t. Same in our case.
It is true that both stru...
2017 Jan 12
2
RFC: Dynamically Allocated "Callee Saved Registers" Lists
...h other.
Can you clarify in which way to they contradict each other?
Do you have a patch I could look at? (Or could point at some piece of code in LLVM?)
I think that the following analog will help to explain why I think that a reuse is redundant:
Let’s assume two different functions (FuncA and FuncB) need to allocate an array of items of type X.
FuncA allocates XarrayA that contains all X items that are big.
FuncB allocates XarrayB that contains all X items that are square shaped.
Should both of them use the same array?!
They may not use the same array, but they’ll both use malloc() :-)
—
Me...
2017 Jan 12
2
RFC: Dynamically Allocated "Callee Saved Registers" Lists
Hi Mehdi,
It is true that both IPRA and the proposed mechanism save RegMasks.
So you might say that the data structure in the immutable pass should be reused, but this is the only similarity.
Even this similarity is not exactly true.
I save register masks that doesn’t use passed/returned arguments while IPRA saves register masks for modified registers.
So how can they share the same mechanism?