Displaying 10 results from an estimated 10 matches for "mdbuilder".
Did you mean:
mbuilder
2012 Apr 15
2
[LLVMdev] MDBuilder - helper for making metadata
Here's a first attempt at a MDBuilder class that makes it easier to create
metadata. It has utilities for creating range and tbaa metadata (which by
a strange coincidence are the kinds used by dragonegg).
Ciao, Duncan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mdbuilder.diff
Type: text/x-patc...
2012 Apr 15
0
[LLVMdev] MDBuilder - helper for making metadata
On Sun, Apr 15, 2012 at 3:35 PM, Duncan Sands <baldrick at free.fr> wrote:
> Here's a first attempt at a MDBuilder class that makes it easier to create
> metadata. It has utilities for creating range and tbaa metadata (which by
> a strange coincidence are the kinds used by dragonegg).
>
This seems like a fine interface. I'd love it for folks more familiar w/
the particular metadata categories to...
2012 Apr 16
3
[LLVMdev] Representing -ffast-math at the IR level
Hi Duncan,
I like the changes to IRBuilder and how the operator can't change it.
Looks a lot safer (mistake-wise) and more convenient.
This function won't to remove a previously set tag, which could be
used by optimisations or inlining.
+ Instruction *AddFPMathTag(Instruction *I, MDNode *FPMathTag) const {
+ if (!FPMathTag)
+ FPMathTag = DefaultFPMathTag;
+ if (FPMathTag)
+
2012 Apr 16
1
[LLVMdev] Representing -ffast-math at the IR level
...representing this as a single "fast" mode flag,
it isn't a single flag, that's the whole point of using metadata. OK, right
now there is only one option (the "accuracy"), true, but the intent is that
others will be added, and the meaning of accuracy tightened, later. MDBuilder
has a createFastFPMath method which is intended to produce settings that match
GCC's -ffast-math, however frontends will be able to specify whatever settings
they like if that doesn't suit them (i.e. createFPMath will get more arguments
as more settings become available).
Note that as the...
2012 Apr 16
0
[LLVMdev] Representing -ffast-math at the IR level
...FPMathOperator class can no longer be used to change math settings,
only to read them. Currently it can be queried for accuracy info. I split
the accuracy methods into two: one for 'fast' accuracy, one for a numerical
accuracy (which returns +infty when the accuracy is 'fast').
- MDBuilder got support for creating fpmath metadata, in particular there is
function that returns the appropriate settings for -ffast-math.
- A default fpmath setting can be supplied to IRBuilder, which will then apply
it to all floating point operations. It is also possible to specify specific
fpmath metad...
2015 Mar 30
3
[LLVMdev] Invalid or unaligned stack
Hi,
I am encountering a problem that I do not know how to debug. I would
greatly appreciate any guidance on this issue.
On Windows when I run Lua test cases from JITed code I am getting
following error:
Unhandled exception at 0x00007FFCEEEAC500 (ntdll.dll) in lua.exe:
0xC0000028: An invalid or unaligned stack was encountered during an
unwind operation.
This is happening when the Lua code is
2012 Apr 16
0
[LLVMdev] Representing -ffast-math at the IR level
Duncan,
I have some issues with representing this as a single "fast" mode flag, which mostly boil down to the fact that this is a very C-centric view of the world. And, since C compilers are not generally known for their awesomeness on issues of numerics, I'm not sure that's a good idea.
Having something called a "fast" or "relaxed" mode implies that it is
2012 Apr 14
9
[LLVMdev] Representing -ffast-math at the IR level
The attached patch is a first attempt at representing "-ffast-math" at the IR
level, in fact on individual floating point instructions (fadd, fsub etc). It
is done using metadata. We already have a "fpmath" metadata type which can be
used to signal that reduced precision is OK for a floating point operation, eg
%z = fmul float %x, %y, !fpmath !0
...
!0 = metadata
2017 Jun 15
7
[RFC] Profile guided section layout
...----------------------------------------------------------------===//
+
+#include "llvm/Analysis/BlockFrequencyInfo.h"
+#include "llvm/Analysis/BranchProbabilityInfo.h"
+#include "llvm/IR/Constants.h"
+#include "llvm/IR/Instructions.h"
+#include "llvm/IR/MDBuilder.h"
+#include "llvm/IR/PassManager.h"
+#include "llvm/Transforms/Instrumentation.h"
+
+#include <array>
+
+using namespace llvm;
+
+class CFGProfilePass : public ModulePass {
+public:
+ static char ID;
+
+ CFGProfilePass() : ModulePass(ID) {
+ initializeCFGProfile...
2015 Jul 29
1
[LLVMdev] Error when i am using command make -j4 command in cygwin to compile safecode
...or Release+Asserts build
llvm[1]: Compiling IntrinsicInst.cpp for Release+Asserts build
llvm[1]: Compiling LLVMContext.cpp for Release+Asserts build
llvm[1]: Compiling LLVMContextImpl.cpp for Release+Asserts build
llvm[1]: Compiling LegacyPassManager.cpp for Release+Asserts build
llvm[1]: Compiling MDBuilder.cpp for Release+Asserts build
llvm[1]: Compiling Mangler.cpp for Release+Asserts build
llvm[1]: Compiling Metadata.cpp for Release+Asserts build
llvm[1]: Compiling MetadataTracking.cpp for Release+Asserts build
llvm[1]: Compiling Module.cpp for Release+Asserts build
llvm[1]: Compiling Operator.cpp...