Displaying 20 results from an estimated 1000 matches similar to: "globalVariables()"
2009 Jul 18
0
[LLVMdev] The mysterious case of the missing GlobalVariables.
If the globals don't have 'external' linkage, the optimizers will
happily eliminate them. If they are marked external, attaching the .bc
file, reduced if possible, will give people a better chance of helping
you.
On Sat, Jul 18, 2009 at 8:20 AM, Richard Pennington<rich at pennware.com> wrote:
> Hi,
>
> I've recently been updating my stuff with LLVM TOT with the
2009 Jul 18
2
[LLVMdev] The mysterious case of the missing GlobalVariables.
Hi,
I've recently been updating my stuff with LLVM TOT with the context
changes, etc. I'm up to date as of yesterday.
In my environment I do most of the translation in memory:
1. Parse the source file(s).
2. lower to LLVM module(s)
3. bc optimize module(s)
4. bc link module(s)
5. generate a .s file and assemble it
6. link .o's and libraries.
This was working very well until a
2012 Jul 29
0
Xen networking experiment (with custom scripts and OpenVSwitch)
Hello everyone,
Recently I have been testing my customized Xen 4.2 networking setup. It
works pretty good and I would like to share it with anyone who is
interested.
The relevant files can be found here:
https://github.com/slacks42/xenscripts
Benefit: configure the Xen related networking devices with one
understandable bash script.
Please note that this is all still work in progress. For
2012 Jul 30
3
Xen networking disconnect
Hello.
I need your help, DomU xen network diconnects randomly, how do you
monitoring this?
When I connect to vnc server in the hosts, DomU is running, then I open the
DomU, after that guest network responds.
DomU Debian 6.03 over Centos 5.7 and Xen 3.03.
My network configuration:
eth0 Link encap:Ethernet HWaddr 68:B5:99:78:AA:6D
inet addr:192.168.5.230 Bcast:192.168.5.255
2009 Oct 07
1
[LLVMdev] Eliminating Unused Globals
Is there a pass or piece of code somewhere in LLVM that knows how to delete
GlobalVariables that are never used? And iterate to then delete
GlobalVariables that only were used (in their initializers) by GlobalVariables
previously deleted?
-Dave
2008 Apr 07
3
findGlobals on apply
Hi the list,
Considere the following:
f <- function(x){apply(x,2,mean)}
findGlobals(f)
findGlobals consideres mean as a global variable, which it is not.
Is there a way to tell to findGlobals that mean is a function ?
Thanks
Christophe
2007 Dec 16
2
clean programming
Hello the list,
I am trying to write a "cleanProgramming" function to test the
procedure I use. For example, I want to be sure that I am not using
globals variables. The function "findGlobals" detect that.
To list the globals used in function "fun", the syntax is :
"findGlobals(fun,FALSE)$variable"
My problem is that I want to use it in a function,
2009 Dec 25
1
[LLVMdev] JIT buffer code skipping 8 bytes?
On OS X (10.6.2) running on an Intel Core 2 duo with LLVM 2.7 pulled about a month ago from CVS and built in debug mode:
Using the JIT system with exception handling, I am having issues with type infos. "Finally" code (llvm.eh.selector intrinsic call with 0)
works fine (correct landing pads found), as does this call with one type info. My type infos are each 64 bit array GlobalVariables
2024 Mar 06
1
Never exporting .__global__ and .__suppressForeign__?
Hello,
(Dear Richard, I hope you don't mind being Cc:'d on this thread in
R-devel. This is one of the ways we can prevent similar problems from
happening in the future.)
Sometimes, package authors who use both exportPattern('.') and
utils::globalVariables(...) get confusing WARNINGs about undocumented
exports:
https://stat.ethz.ch/pipermail/r-package-devel/2024q1/010531.html
I
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
Yes, this is really a problem with the checks, not with the language.
A simpler approach than your alternativeAssignment function would be
simply to allow globalVariables() to be limited to a single function as
the note in its help page says.
This might be tedious to write by hand, but could be automated using
methods like "dotify" in dotty.
Duncan Murdoch
On 12/03/2023 10:36
2023 Mar 13
1
Multiple Assignment built into the R Interpreter?
Dear All,
As a maintainer of large, complex packages, I can think of many places
in which deconstructing assignment would simplify the code, as well as
facilitate readability by breaking up larger functions into helpers, so
I would be very glad to see this incorporated somehow.
I think the crux of the matter is that while there is a number of ways
to implement deconstructing assignment within R,
2023 Mar 12
1
Multiple Assignment built into the R Interpreter?
Kevins package is very nice as a proof of concept, no doubt about that, but
it is not at the level of performance or convenience that a native R
implementation would offer. I would probably not use it to translate matlab
routines into R packages placed on CRAN, because it?s an additional
dependency, I have a performance burden in every iteration, and
utils::globalVariables() is everything but
2011 Oct 12
2
[LLVMdev] insert ICmpInst/BranchIns in Pass?
In a pass I would like to insert a ICmpInst/BranchInst pair to check
if 2 GlobalVariables are equal or not. If they are not I would like to
call a function. I've tried splitting the current block and then
inserting before the existing instructions, but for some reason this
seems to ruin the iterator(i). What is the correct way todo something
like this?
void checkShadowPtr(Module &M,
2018 Dec 05
2
DebugInfo: Global variable expression management
Hi Folks,
Looking into some other issues, I came across a couple of oddities with
regard to debug info for global variables (PR39900
<https://bugs.llvm.org/show_bug.cgi?id=39900> and PR39899
<https://bugs.llvm.org/show_bug.cgi?id=39899>).
But a broader question I was wondering if it was anyone's radar (it's not
something I'll be pushing on myself in the near future, but
2010 Mar 16
4
[LLVMdev] Replacement for findStopPoint() in LLVM 2.7
Török Edwin wrote:
> [snip]
>
> Ah, the method got moved to the instruction itself!
>
> dbgKind = Context->getMDKindID("dbg");
> if (MDNode *Dbg = I->getMetadata(dbgKind)) {
> ...
>
Thanks! This appears to work.
I also have code that looks up debug information for GlobalVariables and
regular LLVM Value *'s. For the former, I think I can look up
2016 Sep 03
3
GlobalVariable to image base
For x86-win32 we got __ImageBase,
Is there any *simple* way to create a GlobalVariable pointing to the image
base on all platforms?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160903/74cb585c/attachment-0001.html>
2011 Jan 06
2
Global variables
Dear R-users,
Is there a way I can prevent global variables to be visible within my
functions?
Sebastien
2023 Mar 11
2
Multiple Assignment built into the R Interpreter?
FWIW, it's possible to get fairly close to your proposed semantics
using the existing metaprogramming facilities in R. I put together a
prototype package here to demonstrate:
https://github.com/kevinushey/dotty
The package exports an object called `.`, with a special `[<-.dot` S3
method which enables destructuring assignments. This means you can
write code like:
.[nr, nc] <-
2003 Nov 17
3
[LLVMdev] Question about structure of SymbolTable
I was trying to look through the SymbolTable code for LLVM. What does
the SymbolTable for a Module contain? Is it just GlobalVariables and
Functions? How are program constants and static variables declared
within functions handled? When I said program constants, I meant
things like strings (e.g., char* foo = "Hello world\n";). Thanks in
advance.
Sincerely,
Brian
Brian M.
2010 Jul 07
1
[LLVMdev] Alloca and GlobalVariable
I just added support for arrays to the front-end for a trading-specific DSL that I'm implementing using LLVM and ran into a minor bump.
Internally, I have been treating variables the same whether they end up being GlobalVariables or stack variables allocated with Alloca. I store the Value* I get from CreateAlloca or the Value* I get when I create a new GlobalVariable into my symbol table when