Displaying 20 results from an estimated 29 matches for "getinst".
Did you mean:
netinst
2014 Dec 12
2
[LLVMdev] why 'const' void * return for ThreadLocalImpl::getInstance()?
I'm probably missing something obvious here, but naively, this makes it kind of awkward to have mutable thread local state...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141212/53b577ae/attachment.html>
2009 Sep 02
0
[LLVMdev] [PATCH] PR2218
...think it would be better if it returned an int,
which was -1 if not found.
+ MemoryDependenceAnalysis& MD =
getAnalysis<MemoryDependenceAnalysis>();
You can sink this link to right before the call to MD.getDependency.
+ // Require pointer to have local dependency.
+ if (!dep.getInst() || dep.isNonLocal())
+ return false;
Random thought: after this patch goes in, it would be interesting to
see how many queries get rejected because they are non-local: handling
non-local would be pretty easy. Please add a TODO that mentions this.
In any case, the check for dep.isNonLoca...
2009 Jul 23
0
[LLVMdev] [PATCH] PR2218
...don't hack
volatile loads.
2. The dependency check is relatively expensive, so please reorder it
to be checked after the check for alloca:
+ Value* pointer = L->getPointerOperand();
+ MemDepResult dep = MD.getDependency(L);
+
+ // Require pointer to have local dependency.
+ if(!dep.getInst() || dep.isNonLocal())
+ return false;
+
+ // Require pointer to be an alloca.
+ if(!isa<AllocaInst>(pointer))
+ return false;
3. In this code, does the argument also need to be sret, or is any
argument ok?
+ if(CallInst *C = dyn_cast<CallInst>(dep.getInst())) {
+ CallS...
2009 Jul 22
2
[LLVMdev] [PATCH] PR2218
Hello,
This patch fixes PR2218. However, I'm not pretty sure that this
optimization should be in MemCpyOpt. I think that GVN is good place as
well.
Regards
--
Jakub Staszak
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr2218.patch
Type: application/octet-stream
Size: 6146 bytes
Desc: not available
URL:
2009 Sep 02
2
[LLVMdev] [PATCH] PR2218
Hello,
I fixed my patch as you asked. Sorry for the delay, I'd been working
on my SSU patch (http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-August/025347.html
)
I hope that everything is fine now.
-Jakub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr2218-3.patch
Type: application/octet-stream
Size: 7511 bytes
Desc: not available
URL:
2009 Sep 02
1
[LLVMdev] [PATCH] PR2218
...wouldn't look good I think.
>
> + MemoryDependenceAnalysis& MD =
> getAnalysis<MemoryDependenceAnalysis>();
>
> You can sink this link to right before the call to MD.getDependency.
>
>
>
> + // Require pointer to have local dependency.
> + if (!dep.getInst() || dep.isNonLocal())
> + return false;
>
> Random thought: after this patch goes in, it would be interesting to
> see how many queries get rejected because they are non-local:
> handling non-local would be pretty easy. Please add a TODO that
> mentions this.
>
>...
2009 Nov 04
5
[LLVMdev] DeadStoreElimination: do better without TargetData
...ms/Scalar/DeadStoreElimination.cpp (working copy)
> @@ -117,10 +117,12 @@
>
> // If this is a store-store dependence, then the previous store
> is dead so
> // long as this store is at least as big as it.
> - if (StoreInst *DepStore = dyn_cast<StoreInst>(InstDep.getInst()))
> - if (TD &&
> - TD->getTypeStoreSize(DepStore->getOperand(0)->getType()) <=
> - TD->getTypeStoreSize(SI->getOperand(0)->getType())) {
> + if (StoreInst *DepStore = dyn_cast<StoreInst>(InstDep.getInst
> ())) {
> +...
2009 Nov 04
0
[LLVMdev] DeadStoreElimination: do better without TargetData
Re-posting with better-looking code.
Hans Wennborg wrote:
> The attached patch makes DeadStoreElimination able to remove stores in
> store-store dependencies when the operand types are equal, even if there
> is no TargetData available.
>
> / Hans
>
>
> ------------------------------------------------------------------------
>
>
2010 Sep 09
1
Remote access form windows - Java bindings
...10.22/");
it shows the exception
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library
'virt': The specified module could not be found.
??????? at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:164)
??????? at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:237)
??????? at
com.sun.jna.Library$Handler.<init>(Library.java:140)
??????? at com.sun.jna.Native.loadLibrary(Native.java:374)
??????? at com.sun.jna.Native.loadLibrary(Native.java:359)
??????? at org.libvirt.jna.Libvirt.<clinit>(Unknown Source)
??????? at org.l...
2011 Mar 14
1
Beware! Newbie is in town
...//default.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load
library 'virt': libvirt.so: cannot open shared object file: No such file or
directory
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:164)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:237)
at com.sun.jna.Library$Handler.<init>(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:374)
at com.sun.jna.Native.loadLibrary(Native.java:359)
at org.libvirt.jna.Libvirt.<clinit>(Unknown Source)
at org.li...
2009 Nov 04
2
[LLVMdev] DeadStoreElimination: do better without TargetData
The attached patch makes DeadStoreElimination able to remove stores in
store-store dependencies when the operand types are equal, even if there
is no TargetData available.
/ Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DeadStoreElimination.patch
Type: text/x-patch
Size: 812 bytes
Desc: not available
URL:
2008 Jan 26
0
JRuby version of win32-api - initial try
...ne is interested in taking a stab at it I would greatly
appreciate it!
Regards,
Dan
require ''java''
# The Win32 module serves as a namespace only.
module Win32
class API
class Error < StandardError; end
private
KERNEL32 = com.sun.jna.NativeLibrary.getInstance(''kernel32'')
LoadLibrary = KERNEL32.getFunction(''LoadLibraryA'')
GetProcAddress = KERNEL32.getFunction(''GetProcAddress'')
FormatMessageA = KERNEL32.getFunction(''FormatMessageA'')
LocalFree =...
2011 Dec 13
1
[LLVMdev] Memory Dependence Analysis
...rs() << *i << "\n";
// look for loads and stores
if (i->mayReadFromMemory() || i->mayWriteToMemory()) {
// get dependence for this instruction
MemDepResult d = MDA->getDependency(i);
if (d.isClobber())
errs() << "clobber " << *(d.getInst());
if (d.isDef())
errs() << "def " << *(d.getInst());
if (d.isNonLocal()) {
errs() << "\tnot defined in this block\n";
BasicBlock *bb = i->getParent();
SmallVectorImpl<NonLocalDepResult> result(4);
bool isLoad = false;
AliasAnalysis::Locat...
2012 Dec 13
2
[LLVMdev] Fwd: error while linking modules with exception handling demo code
...y() && "Uses remain when a value is destroyed!"'
failed.
As a separate but probably related detail, the function 'invoke foo'
is not being inserted in the foo2 IR. The foo2 invoke generation looks
like this:
llvm::Module* module =
Compiler::Services::SymbolResolver::getInstance()->resolveOrCreateModule(
buildParameters.getLLVMContext() ,
buildParameters.getModuleDefinition() );
HAssertMsg( 0 != module , " null module ");
llvm::Module* excptModule =
Compiler::Services::SymbolResolver::getInstance()->resolv...
2009 Nov 04
0
[LLVMdev] DeadStoreElimination: do better without TargetData
...tion.cpp (working copy)
>> @@ -117,10 +117,12 @@
>>
>> // If this is a store-store dependence, then the previous store is
>> dead so
>> // long as this store is at least as big as it.
>> - if (StoreInst *DepStore = dyn_cast<StoreInst>(InstDep.getInst()))
>> - if (TD &&
>> - TD->getTypeStoreSize(DepStore->getOperand(0)->getType()) <=
>> - TD->getTypeStoreSize(SI->getOperand(0)->getType())) {
>> + if (StoreInst *DepStore = dyn_cast<StoreInst>(InstDep.getInst()))...
2010 Sep 23
2
[LLVMdev] Finding all values derived from a function argument
...results);
for(llvm::SmallVector<llvm::NonLocalDepResult,
16>::iterator II = results.begin(), EE = results.end(); !pick && II !=
EE; ++II)
{
const llvm::MemDepResult &result = II->getResult();
if(llvm::Instruction *dep = result.getInst())
{
if(llvm::StoreInst *store =
llvm::dyn_cast<llvm::StoreInst>(dep))
pick |= (stores.count(store) != 0);
}
}
#else
llvm::MemDepResult result = mda->getDependency(*I);
if(llvm::Instruction *d...
2013 Apr 29
1
Java client error on Windows 7 64 bit for Libvirt on KVM
...ption :
Exception in thread "main" java.lang.UnsatisfiedLinkError: %1 is not a valid Win32 application.
at com.sun.jna.Native.open(Native Method)
at com.sun.jna.Native.open(Native.java:1718)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:210)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:322)
at com.sun.jna.Library$Handler.<init>(Library.java:142)
at com.sun.jna.Native.loadLibrary(Native.java:387)
at com.sun.jna.Native.loadLibrary(Native.java:366)
at org.libvirt.jna.Libvirt.<clinit>(Unknown Source)
at org.libvirt.Library.<clinit>(Unknow...
2008 Jul 05
18
Java Bridge Itext Example Anyone?
I MAY be able to derive something out of the present example given here
:
http://blog.codeinmotion.com/index.php/2006/12/22/pdf-generation-in-ruby-on-rails/
but this deals with filling out forms. Is there a simpler example that
just allows you to talk to itext , send it some plain text and get back
a pdf and then send that pdf to the user as downloadable / renderable
data?
--
Posted via
2009 Jul 25
2
[LLVMdev] [PATCH] PR2218
...2. The dependency check is relatively expensive, so please reorder
> it to be checked after the check for alloca:
>
> + Value* pointer = L->getPointerOperand();
> + MemDepResult dep = MD.getDependency(L);
> +
> + // Require pointer to have local dependency.
> + if(!dep.getInst() || dep.isNonLocal())
> + return false;
> +
> + // Require pointer to be an alloca.
> + if(!isa<AllocaInst>(pointer))
> + return false;
>
>
> 3. In this code, does the argument also need to be sret, or is any
> argument ok?
>
> + if(CallInst *C = d...
2011 Nov 01
0
[LLVMdev] MemoryDependenceAnalysis && MemDepResult
...d only one dep for a instruction.I want to get all
dependences for an instruction.
MemoryDependenceAnalysis &mda = getAnalysis<MemoryDependenceAnalysis>();
MemDepResult mdr = mda.getDependency(inst);
if (mdr.isDef()) {
Instruction *dep = mdr.getInst();
if (isa<LoadInst>(inst)) {
if (isa<StoreInst>(dep)) {
//READ AFTER WRITE
}
}
if (isa<StoreInst>(inst)) {
if (isa<LoadInst>(dep)) {...