Displaying 20 results from an estimated 100 matches similar to: "[LLVMdev] Assertion failed in Pass.cpp"
2004 Jun 24
3
[LLVMdev] Pass vs. FunctionPass
I wonder in what cases FunctionPass is better that Pass. For example,
addPassesToEmitAssembly takes PassManger and addPassesToJITCompile takes
FunctionPassManager.
Another question is about FunctionPassManager::run(Function&) and
FunctionPass(Function&). The former calls the later, which is fine, but the
latter looks like this:
bool FunctionPass::run(Function &F) {
if
2020 Jun 13
2
target-features attribute prevents inlining?
Hi David,
Thanks for your quick response!
I now understand the reason that inlining cannot be done on functions with
different target-attributes. Thanks for your explanation!
However, I think I didn't fully understand your solution; it would be nice
if you would like to elaborate a bit more. Here's a bit more info on my
current workflow:
(1) The clang++ compiler builds C++ source file
2005 Jan 24
4
converting R objects to C types in .Call
Dear People,
I'm trying to write an R wrapper for a C++ library, using .Call. I've
never used .Call before. I'm currently having some difficulties converting
a R character string to a C one.
Here is a little test program.
#include <R.h>
#include <Rinternals.h>
#include <stdio.h>
SEXP testfn(SEXP chstr)
{
char * charptr = CHAR(chstr);
printf("%s",
2020 Jun 13
2
target-features attribute prevents inlining?
Hello,
I'm new to LLVM and I recently hit a weird problem about inlining behavior.
I managed to get a minimal repro and the symptom of the issue, but I
couldn't understand the root cause or how I should properly handle this
issue.
Below is an IR code consisting of two functions '_Z2fnP10TestStructi' and
'testfn', with the latter calling the former. One would expect the
2020 Jun 13
2
target-features attribute prevents inlining?
Thank you so much David! After thinking a bit more I agree with you that
attempting to add 'target-features' to my functions seem to be the safest
approach of all.
I noticed that if I mark the clang++ function as 'AlwaysInline', the
inlining is performed normally. Is this a potential bug, given what you
said that LLVM may accidentally move code using advanced cpu features
outside
2004 Jun 24
0
[LLVMdev] Pass vs. FunctionPass
On Thu, 24 Jun 2004, Vladimir Prus wrote:
> I wonder in what cases FunctionPass is better that Pass. For example,
> addPassesToEmitAssembly takes PassManger and addPassesToJITCompile takes
> FunctionPassManager.
Here's a simple way to look at it. Use a Function pass whenever you can.
A function pass will always work where a Pass works (it derives from pass
as you've noticed),
2007 Mar 23
1
[LLVMdev] NEWBIE: deleting Instructions
Hello,
i just tried to write some passes and in one of them i want to delete a call
Instruction.
I can identify the specific Instruction without a problem, but when i put
the delete operation in the code i always get a error message while running
opt. I already tried to rename my pass, but without any change.
Another question i have is: why do i always get the "opt: CommandLine
Error:"
2003 Sep 10
1
[LLVMdev] cvs probs
cvs co llvm
...
cd llvm; ./configure --with-llvmgccdir=<llvmgccdir>; make
...
Compiling llvmAsmParser.cpp
Linking /home/dcrowe/llvm/llvmcvs/llvm/lib/Debug/asmparser.o
make[2]: Leaving directory
`/home/dcrowe/llvm/llvmcvs/llvm/lib/AsmParser'
make[2]: Entering directory
`/home/dcrowe/llvm/llvmcvs/llvm/lib/Bytecode'
make[2]: *** No rule to make target `all'. Stop.
make[2]:
2003 Dec 17
3
[LLVMdev] pass position
Suppose, I have a Pass1 implemented as a subclass of Pass, with source code in
the directory of llvm source base( transform/analyze )
I can run that pass through opt on the bytecode emitted by gcc frontend
through opt tool. However, I want that Pass1 to be the part of the actual GCC
compiler. I want to know how I can position Pass1 among other passes
/optimizations/ code generations.
e.g if
2003 Dec 17
0
[LLVMdev] pass position
> I can run that pass through opt on the bytecode emitted by gcc frontend
> through opt tool. However, I want that Pass1 to be the part of the
> actual GCC compiler. I want to know how I can position Pass1 among
> other passes /optimizations/ code generations.
I had a similar question and Chris recommended that I edit the
addPassesToEmitAssembly method. Quoting him:
"
2009 Apr 13
2
I want to use Sweave, but only sometimes
Does anybody have a workable system to run an Rnw document through
R-Sweave when necessary, but to just run it through LaTeX if no new R
calculations are needed? I.e., the figures already exist, I do not
need R to do more work for me, so I send the document straight to
LaTeX.
I want to leave open the option that I might need to run the document
through Sweave in the future, so I don't want
2015 Feb 24
2
[LLVMdev] Removing contention in PassRegistry accesses to speed up compiles
Hi,
We use LLVM libraries to compile C++ code and noticed slow downs when
multiple threads of a process were compiling at once. *perf *indicated that
most of the CPU time was spent in a spin lock, which was being
locked/unlocked from llvm::PassRegistry::getPassInfo().
We read the relevant LLVM code and found out that PassRegistry is a
ManagedStatic and is shared among all threads in case of a
2005 Jan 28
2
[LLVMdev] llc -load
Howdy everybody.
I'm trying hard to load my backend. But I got problems.
I took the target SparcV8 for lab.
1. mark all of the code in the bool
SparcV8TargetMachine::addPassesToEmitAssembly(PassManager
&PM,std::ostream &Out)
and make it return false.( Of course I mark the // Output assembly language.
PM.add(createSparcV8CodePrinterPass(Out, *this));)
2. generate the
2005 Jan 25
2
[LLVMdev] llc -load....
Thank you...
I am preparing to build a simple C compiler for our new architecture.
According to your suggestion. I try to dynamically load my backend.
But I got the error message :
llc : target 'Your_Arch' does not support static compilation!
could you tell me where is this problem?
On Mon, 24 Jan 2005 22:53:15 -0600 (CST), Chris Lattner
<sabre at nondot.org> wrote:
> On
2008 Dec 03
1
Function output difficulties
is there anyway for some parts of the function output to not be returned,
even if the output has been used to calculate a further part of the
function? i have tried invisible() to no avail.
Thanks Emma
--
View this message in context: http://www.nabble.com/Function-output-difficulties-tp20813117p20813117.html
Sent from the R help mailing list archive at Nabble.com.
2005 Jan 25
0
[LLVMdev] llc -load....
On Tue, 25 Jan 2005, s88 wrote:
> Thank you...
> I am preparing to build a simple C compiler for our new architecture.
> According to your suggestion. I try to dynamically load my backend.
> But I got the error message :
> llc : target 'Your_Arch' does not support static compilation!
> could you tell me where is this problem?
A useful tool in llvm is named
2004 Aug 24
0
additional examples for R-intro.texi (PR#7195)
Here are some patches to expand some of the examples in R-intro.texi.
--
Brian Gough
Network Theory Ltd,
Publishing the R Reference Manuals --- http://www.network-theory.co.uk/R/
--- R-intro.texi~ Tue Aug 24 11:21:37 2004
+++ R-intro.texi Tue Aug 24 11:21:37 2004
@@ -6288,6 +6288,21 @@
use
@example
+> help(package = "@var{name}")
+@end example
+
+A complete list of the
2008 May 30
0
[LLVMdev] Possibly Vista-related Windows/MinGW Compilation Issues
Greetings,
I seem to be butting up against what may be a Vista-related issue for mingw-based compilation. I did some googling earlier today and found these steps: http://blogs.tedneward.com/2008/02/24/Building+LLVM+On+Windows+Using+MinGW32.aspx, which I followed. But try as I did, I couldn't seem to get past the "tools" section of the compilation. It seemed to always have
2005 May 10
2
[LLVMdev] NASM Backend
Hi again,
I have put together a "blank skeleton" for a X86NASMPrinter class, with effectively the same behaviour as the X86IntelAsmPrinter class. I had to do this within the X86AsmPrinter.cpp file rather than as a separate source file as the dependancies were so. Please do not commit this yet, I have included it not for confidence sake :))
I do not know whether it is a good idea to
2006 Jun 25
1
[LLVMdev] optimization passes
I am looking for a list of the
various optimizations that llvm performs
when I use the JIT execution engine.
Eg. I am assuming:
strench reduction,
dead code elimination
?
Simon.