Displaying 7 results from an estimated 7 matches for "createstring".
2010 Oct 28
5
[PATCH] Fix pci passthru in xend interface used by libvirt
...ev)
- # append uuid to each pci device that does''t already have one.
+ # If necessary, initialize uuid, key, and vdevfn for each pci device
if not pci_dev_info.has_key(''uuid''):
- dpci_uuid = pci_dev_info.get(''uuid'', uuid.createString())
- pci_dev_info[''uuid''] = dpci_uuid
+ pci_dev_info[''uuid''] = uuid.createString()
+ if not pci_dev_info.has_key(''key''):
+ pci_dev_info[''key''] = "%02x:%02x.%x" % \
+...
2012 Apr 16
2
[LLVMdev] Representing -ffast-math at the IR level
...DefaultFPMathTag =
FPMathTag; }
This should be 'setDefault...' much like 'getDefault...' above.
+ Instruction *AddFPMathTag(Instruction *I, MDNode *FPMathTag) const {
Another bad case, but I think this instruction is gone...
+ MDString *GetFastString() const {
+ return CreateString("fast");
+ }
'getFastString'.
+ /// CreateFastFPMath - Return metadata with appropriate settings for
'fast
+ /// math'.
I would prefer the more modern doxygen style:
/// \brief Return metadata ...
+ MDNode *CreateFastFPMath() {
Capitalization.
The capita...
2009 Jul 12
0
Bug#536720: xen-utils-3.2-1: Missing import statement / Syntax Errors in XendPBD.py
...t;, line 256, in
check_session
return func(self, session, *args, **kwargs)
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendAPI.py", line 600, in
<lambda>
f(*args)))
File "/usr/lib/xen-3.2-1/lib/python/xen/xend/XendPBD.py", line 68, in
create
uuid = genuuid.createString()
NameError: global name \047genuuid\047 is not defined
2012 Apr 16
0
[LLVMdev] Representing -ffast-math at the IR level
...struction *AddFPMathTag(Instruction *I, MDNode *FPMathTag) const {
>
> Another bad case, but I think this instruction is gone...
It still exists, and is also capitalized like that for consistency with the rest
of IRBuilder.
>
> + MDString *GetFastString() const {
> + return CreateString("fast");
> + }
>
> 'getFastString'.
OK, done - same for the others that are not in IRBuilder.
> + /// CreateFastFPMath - Return metadata with appropriate settings for 'fast
> + /// math'.
>
> I would prefer the more modern doxygen style:
>...
2012 Apr 16
0
[LLVMdev] Representing -ffast-math at the IR level
Here's a revised patch, plus patches showing how fpmath metadata could be
turned on in clang and dragonegg (it seemed safest for the moment to
condition on -ffast-math rather than on one of the flags implied by
-ffast-math).
Major changes:
- The 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
2017 Jun 15
7
[RFC] Profile guided section layout
...gAdd(Count, *BBCount);
+ }
+ }
+ }
+
+ if (Counts.empty())
+ return false;
+
+ LLVMContext &Context = M.getContext();
+ MDBuilder MDB(Context);
+ std::vector<Metadata *> Nodes;
+
+ for (auto E : Counts) {
+ SmallVector<Metadata *, 3> Vals;
+ Vals.push_back(MDB.createString(E.first.first));
+ Vals.push_back(MDB.createString(E.first.second));
+ Vals.push_back(MDB.createConstant(
+ ConstantInt::get(Type::getInt64Ty(Context), E.second)));
+ Nodes.push_back(MDNode::get(Context, Vals));
+ }
+
+ M.addModuleFlag(Module::Append, "CFG Profile", MDNo...
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