Displaying 20 results from an estimated 66 matches for "cgm".
Did you mean:
cam
2014 Feb 21
12
[LLVMdev] asan coverage
...// uint64_t *Counters
+ Int64PtrTy, // uint64_t *Counters
+ Int64PtrTy // uint64_t *PCs
};
llvm::FunctionType *FTy =
llvm::FunctionType::get(PGOBuilder.getVoidTy(), Args, false);
@@ -209,9 +210,10 @@
llvm::Constant *MangledName =
CGM.GetAddrOfConstantCString(CGM.getMangledName(GD),
"__llvm_pgo_name");
MangledName = llvm::ConstantExpr::getBitCast(MangledName, Int8PtrTy);
- PGOBuilder.CreateCall3(EmitFunc, MangledName,
+ PGOBuilder.CreateCall4(EmitFunc, MangledName,
PGOBuilder.getInt32(Num...
2004 Aug 06
2
No audio with slackware for live station
He means that development of WinAmp 3 has discontinued. WA2 is being updated
to support WA3's extra features (video, media library), and WinAmp 5 (2+3=5)
is the main new development.
You can read the announcement on the WinAmp forums.
>===== Original Message From Stefan Neufeind <stefan@neufeind.net> =====
>On Fri, 16 May 2003 at 13:15:22, Geoff Shang wrote:
>
>> I
2018 May 30
1
llvm.annotation arguments
Hello all,
According to *clang/lib/CodeGen/CodeGenFunction.cpp*, a LLVM annotation
intrinsic call has 4 arguments:
- llvm::Value *AnnotatedVal,
- Builder.CreateBitCast(CGM.EmitAnnotationString(AnnotationStr), Int8PtrTy),
- Builder.CreateBitCast(CGM.EmitAnnotationUnit(Location), Int8PtrTy),
- CGM.EmitAnnotationLineNo(Location)
However, this is what an annotation intrinsic *char
__attribute__((annotate("DIFF"))) diff* looks like in the IR:
@.str = private u...
2014 Feb 19
2
[LLVMdev] asan coverage
I've built chromium with " -fprofile-instr-generate -fsanitize=address" --
the performance looks good!
The file format from r198638 is indeed rudimentary.
Do you already know how the real output format will look like?
Just to summarize what I think is important:
- minimal size on disk, minimal amount of files
- minimal i/o while writing to disk, no lockf or some such
-
2003 Oct 22
4
adjacency matrix
Dear R experts,
I am new to the list and R software. I need to convert arcview file to Winbugs having R has middle package. Got from friends that it is possible following the steps:
1. Converting arcview shapefile to "cgm clear text file"
2. Downloading "convert.r" to into R
2.1 use source("convert.r")
2.2 convert("filename_cgm") without the extension.
But that doesn't work, given the following errors:
----------------------------
R : Copyright 2003, The R Development...
2018 Apr 07
0
Obtain gradient at multiple values for exponential decay model
...aphmodelp
graphmodeldpdt
#> 1 2 3
#> -0.31464113 -0.11310757 -0.08042364
# Ellison suggestion - fancy, only works for simple functions
dc <- deriv( expression( exp( a + b * t ) )
, namevec = "t"
)
dcf <- function( t ) {
cgm <- coef( graphmodeld )
a <- cgm[ 1 ]
b <- cgm[ 2 ]
eval(dc)
}
result <- dcf( nd )
result
#> [1] 46.13085 16.58317 11.79125
#> attr(,"gradient")
#> t
#> [1,] -0.31464113
#> [2,] -0.11310757
#> [3,] -0.08042364
attr( result, "gradie...
2014 Oct 18
3
[LLVMdev] Performance regression on ARM
Hi Chandler,
That's embarrassing how weird this part of clang is. I have a provisional
patch which fixes the problem but underlines clang's problems. I will
submit it tonight for comments.
суббота, 18 октября 2014 г. пользователь Chandler Carruth написал:
>
> On Fri, Oct 17, 2014 at 7:51 AM, Anton Korobeynikov <
> anton at korobeynikov.info
>
2018 Apr 06
3
Obtain gradient at multiple values for exponential decay model
> On Apr 6, 2018, at 8:03 AM, David Winsemius <dwinsemius at comcast.net> wrote:
>
>
>> On Apr 6, 2018, at 3:43 AM, g l <gnulinux at gmx.com> wrote:
>>
>>> Sent: Friday, April 06, 2018 at 5:55 AM
>>> From: "David Winsemius" <dwinsemius at comcast.net>
>>>
>>>
>>> Not correct. You already have
2015 Jun 17
2
[LLVMdev] Inline hint for methods defined in-class
...owing patch, which I believe handles the in-class definition
case:
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -630,7 +630,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD,
if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
if (!CGM.getCodeGenOpts().NoInline) {
for (auto RI : FD->redecls())
- if (RI->isInlineSpecified()) {
+ if (RI->isInlined()) {
Fn->addFnAttr(llvm::Attribute::InlineHint);
break;
}
I tried this on C++ benchmarks in SPEC 2006. There is no noticea...
2014 May 12
3
[LLVMdev] Questions about LLVM PGO and autoFDO
...found that the run-time function "writeFile" in InstrProfilingFile.cpp didn't write '\n'.
But when parsing the profile data, in CodeGenPGO.cpp line 56, it tried to find '\n' like below:
CurPtr = strchr(CurPtr, '\n');
if (!CurPtr) {
ReportBadPGOData(CGM, "pgo data file has malformed function entry");
return;
}
2. Problems in autoFDO:
Actually the problem happened in using create_llvm_prof, transformation is failed.
clang -O2 -g test.c -o a.out
perf record -b ./a.out (perf version is 0.0.2, "-b" option is no...
2018 Sep 06
2
Adding an trinsics in x86
...6_max_qb, "V2iV2iV2i", "ncV:64:", "") //I don't know the meaning of these parameters, just write according to the add function.
In src/tools/clang/lib/CodeGen/CGBuiltin.cpp. in function EmitX86BuiltinExpr
case X86::BI__builtin_x86_max_qb:{
return Builder.CreateCall(CGM.getIntrinsic(Intrinsic::x86_max_qb));
}
Then I do a simple test,just like this:
#include <stdlib.h>
#include <stdio.h>
int main()
{
int a, b, c;
a=1;b=2;
c = int_x86_max_qb(a, b);
}
When I use clang to compile,there is a warning:implicit declaration of function 'int_x86_max_qb'...
2015 Jun 17
2
[LLVMdev] Inline hint for methods defined in-class
...es the in-class definition
> case:
>
> --- a/lib/CodeGen/CodeGenFunction.cpp
> +++ b/lib/CodeGen/CodeGenFunction.cpp
> @@ -630,7 +630,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD,
> if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
> if (!CGM.getCodeGenOpts().NoInline) {
> for (auto RI : FD->redecls())
> - if (RI->isInlineSpecified()) {
> + if (RI->isInlined()) {
> Fn->addFnAttr(llvm::Attribute::InlineHint);
> break;
> }
>
> I tried this on C++ bench...
2018 Sep 24
4
Writing simple intrinsic in clang
I want to write a simple backend-specific instrinsic that will just call an
instruction. How should I do that?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180924/7faeeb3d/attachment.html>
2015 Jun 24
4
[LLVMdev] Inline hint for methods defined in-class
...t; >> --- a/lib/CodeGen/CodeGenFunction.cpp
> >> +++ b/lib/CodeGen/CodeGenFunction.cpp
> >> @@ -630,7 +630,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD,
> >> if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
> >> if (!CGM.getCodeGenOpts().NoInline) {
> >> for (auto RI : FD->redecls())
> >> - if (RI->isInlineSpecified()) {
> >> + if (RI->isInlined()) {
> >> Fn->addFnAttr(llvm::Attribute::InlineHint);
> >> break;
> &...
2005 Jun 20
2
FXO/FXS cpu spikes, data loss and ztclock.
...replaced
it with a 20.000 MHZ crystal. This of course forced the zaptel
timing way off ~ 93% accurate using ztclock. I then proceeded to
modify the wcfxo.c driver source code to set the proper PLL divider
values to return the DAA clock back to 8 Khz. I came up with the
values of N1=25, M1=72 and CGM=1. I wrote the corresponding
values out to registers 7, 8 & 10. This seemed to bring the clock
back closer to the true 8 Khz spec and in fact seemed to provide
a slightly better clock value than the original crystal.
Before the mod, I was seeing CPU spikes once every 12 seconds
while ztclock...
2013 Oct 10
3
[LLVMdev] A new builtin: __builtin_stack_pointer()
...mp, "vv**i", "r")
diff --git a/lib/CodeGen/CGBuiltin.cpp b/lib/CodeGen/CGBuiltin.cpp
index d187678..f66f506 100644
--- a/lib/CodeGen/CGBuiltin.cpp
+++ b/lib/CodeGen/CGBuiltin.cpp
@@ -736,6 +736,11 @@ RValue CodeGenFunction::EmitBuiltinExpr(const FunctionDecl *FD,
Value *F = CGM.getIntrinsic(Intrinsic::frameaddress);
return RValue::get(Builder.CreateCall(F, Depth));
}
+ case Builtin::BI__builtin_stack_pointer: {
+ Value *StackAddr =
+ Builder.CreateCall(CGM.getIntrinsic(Intrinsic::stacksave));
+ return RValue::get(StackAddr);
+ }
case Builtin::BI__b...
2015 Jun 24
4
[LLVMdev] Inline hint for methods defined in-class
...> >> +++ b/lib/CodeGen/CodeGenFunction.cpp
>> > >> @@ -630,7 +630,7 @@ void CodeGenFunction::StartFunction(GlobalDecl
>> > >> GD,
>> > >> if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
>> > >> if (!CGM.getCodeGenOpts().NoInline) {
>> > >> for (auto RI : FD->redecls())
>> > >> - if (RI->isInlineSpecified()) {
>> > >> + if (RI->isInlined()) {
>> > >> Fn->addFnAttr(llvm::Attribute::InlineHint);
&g...
2015 Jul 07
6
[LLVMdev] Inline hint for methods defined in-class
...posed patch will add InlineHint to methods defined inside a class:
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -630,7 +630,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD,
if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) {
if (!CGM.getCodeGenOpts().NoInline) {
for (auto RI : FD->redecls())
- if (RI->isInlineSpecified()) {
+ if (RI->isInlined()) {
Fn->addFnAttr(llvm::Attribute::InlineHint);
break;
}
Here are the performance and size numbers I've collected:...
2015 Jun 24
2
[LLVMdev] Inline hint for methods defined in-class
...on.cpp
>> >> > >> @@ -630,7 +630,7 @@ void CodeGenFunction::StartFunction(GlobalDecl
>> >> > >> GD,
>> >> > >> if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D))
>> {
>> >> > >> if (!CGM.getCodeGenOpts().NoInline) {
>> >> > >> for (auto RI : FD->redecls())
>> >> > >> - if (RI->isInlineSpecified()) {
>> >> > >> + if (RI->isInlined()) {
>> >> > >> Fn->addFnA...
2006 Jan 24
9
Number of replications of a term
Hello,
Is there a simple and fast function that returns a vector of the number
of replications for each object of a vector ?
For example :
I have a vector of IDs :
ids <- c( "ID1", "ID2", "ID2", "ID3", "ID3","ID3", "ID5")
I want the function returns the following vector where each term is the
number of replicates for the