Displaying 12 results from an estimated 12 matches for "args1".
Did you mean:
args
2011 Jul 26
4
[LLVMdev] How to get the return address on the stack on LLVM
...so I have to get the return
address in the prologue and epilogue of the function.
In the prologue of the function, before I insert into the canary on
the stack, I can get the return address by:
ConstantInt* ci =
llvm::ConstantInt::get(Type::getInt32Ty(RI->getContext()), 0);
Value* Args1[] = {ci};
CallInst* callInst = CallInst::Create(Intrinsic::getDeclaration(M,
Intrinsic::returnaddress),
&Args1[0], array_endof(Args1), "Call Return Address", InsPt);
CallInst will get the return address and it works.
While, in the epilogue of the function, due to t...
2011 Aug 31
2
[LLVMdev] How to place call(s) to functions found in other llvm modules ???
...builder.SetInsertPoint(cond_false);
Value* xLessThanY = builder.CreateICmpULT(x, y, "tmp");
builder.CreateCondBr(xLessThanY, cond_true, cond_false_2);
builder.SetInsertPoint(cond_true);
Value* yMinusX = builder.CreateSub(y, x, "tmp");
std::vector<Value*> args1;
args1.push_back(x);
args1.push_back(yMinusX);
Value* recur_1 = builder.CreateCall(gcd, args1.begin(), args1.end(),
"tmp");
builder.CreateRet(recur_1);
builder.SetInsertPoint(cond_false_2);
Value* xMinusY = builder.CreateSub(x, y, "tmp");
std::vector<Va...
2010 Jul 19
4
[LLVMdev] Is va_arg deprecated?
...; <i8**> [#uses=6]
%i = alloca i32 ; <i32*> [#uses=1]
%d = alloca double, align 8 ; <double*> [#uses=1]
%"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
store i8* %fmt, i8** %fmt_addr
%args1 = bitcast i8** %args to i8* ; <i8*> [#uses=1]
call void @llvm.va_start(i8* %args1)
%0 = load i8** %args, align 4 ; <i8*> [#uses=1]
store i8* %0, i8** %args.0, align 4
%1 = load i8** %args.0, align 4 ; <i8*> [#uses=1]
%2 = ge...
2024 Feb 17
2
Capturing Function Arguments
...function(...) {
call <- rlang::call_match(fn = f0, defaults = TRUE)
args <- rlang::call_args(call)
# do something here to evaluate args as if force() had been called
# I've tried many things but haven't found a solution that handled everything
args
}
# In the below example args1 and args2 should be the same
a <- 1
args1 <- f(a, z = 1 + 100)
args2 <- list( a = 1, y = 202, z = 101, a = NULL, b = rlang::missing_arg() )
If anyone knows how to get this to work, I would appreciate the help.
Thanks,
Reed
--
Reed A. Cartwright, PhD
Associate Professor of Genomics, Evo...
2010 Jul 19
0
[LLVMdev] Is va_arg deprecated?
...]
> %i = alloca i32 ; <i32*> [#uses=1]
> %d = alloca double, align 8 ; <double*> [#uses=1]
> %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
> store i8* %fmt, i8** %fmt_addr
> %args1 = bitcast i8** %args to i8* ; <i8*> [#uses=1]
> call void @llvm.va_start(i8* %args1)
> %0 = load i8** %args, align 4 ; <i8*> [#uses=1]
> store i8* %0, i8** %args.0, align 4
> %1 = load i8** %args.0, align 4 ; <i8*>...
2011 Jul 26
0
[LLVMdev] How to get the return address on the stack on LLVM
...gt;>>
>>> In the prologue of the function, before I insert into the canary on
>>> the stack, I can get the return address by:
>>>
>>> ConstantInt* ci =
>>> llvm::ConstantInt::get(Type::getInt32Ty(RI->getContext()), 0);
>>> Value* Args1[] = {ci};
>>> CallInst* callInst = CallInst::Create(Intrinsic::getDeclaration(M,
>>> Intrinsic::returnaddress),
>>> &Args1[0], array_endof(Args1), "Call Return Address", InsPt);
>>
>> This generates a call to llvm.returnaddress(0). This returns...
2009 May 05
1
Backtrace error
...f my techs that happens to
have thousands of emails reopened her mail and this showed up in the
log. Not sure if this is critical or if more info/dovecot -n is needed
dovecot: 2009-05-05 14:06:38 Panic: imap <REMOVED>: file
mail-search.c: line 712 (mail_search_args_equal): assertion failed:
(args1->simplified == args2->simplified)
dovecot: 2009-05-05 14:06:38 Error: imap <REMOVED>: Raw backtrace:
imap [0x4a3042] -> imap [0x4a30c3] -> imap [0x4a2796] -> imap
[0x467ffa] -> imap(mail_thread_init+0xaa) [0x463a5a] ->
imap(index_storage_search_init+0x132) [0x45e222] ->...
2007 Nov 05
1
Should numeric()/character() etc initialize with NA instead of 0 or ""?
...be immediately obvious from the value of the vector elements
themselves
and programming errors would be far less easy to overlook.
e.g.
x <- numeric(n) or
for( i in seq(along = x) )
{
try(x[i] <- function.which.might.crash( args[i] ))
}
or
x <- numeric(n)
x[condition1] <- foo(args1)
x[condition2] <- foo(args2)
...
x[conditionN] <- foo(argsN)
will produce x without any NAs even if function.which.might.crash() actually
did crash during the loop or
if there are indices for which none of conditions 1 to N were true and you
cannot distinguish between zeroes which
are real r...
2006 Dec 16
2
question about trailing arguments in an S4 method
I'm trying to add arguments to the AIC method
for some classes -- things like
weights=TRUE to calculate AIC weights
corr=TRUE, nobs to calculate AICc
delta=TRUE to put a delta-AIC column in the output.
The problem is that AIC is defined as
AIC(object, ..., k=2) where k is the constant associated
with the penalty term and ... is a list of objects
that will have their AICs calculated
2012 Apr 07
2
assigment operator question
Hello,
using the <<- assignment operator I do not understand why the following does not work.
l <<- list()
l
list()
l$arg1 <<- "test"
error in l$arg1 <<- "test" : Objekt 'l' not found
?"<<-" says: "The operators <<- and ->> cause a search to made through the environment for an existing definition of the
2008 Feb 24
2
Can DTrace display non-instrumented function argument counts and types?
Is it possible to use DTrace to display the number of arguments and their types for userland or kernel functions that are not explicitly instrumented or documented by their authors? We''re talking about functions provided by Veritas VxVM/VxFS and the like, and for example, we might want to try tracing I/Os from App => VxFS => VxVM => ssd driver to see where I/Os get aggregated or
2007 Dec 02
2
[Bug 13491] New: 5min.com player causes assertion
...0, 2920512, 2}}, sa_flags = 8, sa_restorer = 0x5}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x00002af7ef2cf3b0 in IA__g_logv (log_domain=0x2aaaafc5491d "Swfdec",
log_level=G_LOG_LEVEL_CRITICAL,
format=0x2af7ef317aed "%s: assertion `%s' failed", args1=0x7fffbf5d9500)
at gmessages.c:497
depth = 1
domain = <value optimized out>
data = (gpointer) 0x0
log_func = (GLogFunc) 0x4bbc60 <trap_handler>
domain_fatal_mask = 5
test_level = G_LOG_FLAG_FATAL
was_recursion = 0
i = &...