Displaying 20 results from an estimated 80 matches for "startswith".
2012 Nov 30
3
[LLVMdev] Tablegen bug???
...-)
Here's a small segment:
// Function name -> enum value recognizer code.
#ifdef GET_FUNCTION_RECOGNIZER
StringRef NameR(Name+6, Len-6); // Skip over 'llvm.'
switch (Name[5]) { // Dispatch on first letter.
default: break;
case 'A':
…
if (NameR.startswith("MDIL.barrier.")) return AMDILIntrinsic::AMDIL_barrier;
if (NameR.startswith("MDIL.barrier.global.")) return AMDILIntrinsic::AMDIL_barrier_global;
if (NameR.startswith("MDIL.barrier.local.")) return AMDILIntrinsic::AMDIL_barrier_local;
if (NameR.startswith(&qu...
2012 Nov 30
2
[LLVMdev] Tablegen bug???
...t; enum value recognizer code.
>> #ifdef GET_FUNCTION_RECOGNIZER
>> StringRef NameR(Name+6, Len-6); // Skip over 'llvm.'
>> switch (Name[5]) { // Dispatch on first letter.
>> default: break;
>> case 'A':
>> …
>> if (NameR.startswith("MDIL.barrier.")) return AMDILIntrinsic::AMDIL_barrier;
>> if (NameR.startswith("MDIL.barrier.global.")) return AMDILIntrinsic::AMDIL_barrier_global;
>> if (NameR.startswith("MDIL.barrier.local.")) return AMDILIntrinsic::AMDIL_barrier_local;
>> if...
2012 Nov 30
0
[LLVMdev] Tablegen bug???
...> // Function name -> enum value recognizer code.
> #ifdef GET_FUNCTION_RECOGNIZER
> StringRef NameR(Name+6, Len-6); // Skip over 'llvm.'
> switch (Name[5]) { // Dispatch on first letter.
> default: break;
> case 'A':
> …
> if (NameR.startswith("MDIL.barrier.")) return AMDILIntrinsic::AMDIL_barrier;
> if (NameR.startswith("MDIL.barrier.global.")) return AMDILIntrinsic::AMDIL_barrier_global;
> if (NameR.startswith("MDIL.barrier.local.")) return AMDILIntrinsic::AMDIL_barrier_local;
> if (NameR.st...
2013 Jul 03
0
[LLVMdev] Tablegen bug???
...NCTION_RECOGNIZER
> >>> StringRef NameR(Name+6, Len-6); // Skip over 'llvm.'
> >>> switch (Name[5]) { // Dispatch on first letter.
> >>> default: break;
> >>> case 'A':
> >>> …
> >>> if (NameR.startswith("MDIL.barrier.")) return
> AMDILIntrinsic::AMDIL_barrier;
> >>> if (NameR.startswith("MDIL.barrier.global.")) return
> AMDILIntrinsic::AMDIL_barrier_global;
> >>> if (NameR.startswith("MDIL.barrier.local.")) return
> AMDILIntrinsic::AMD...
2012 Dec 01
0
[LLVMdev] Tablegen bug???
...de.
>>> #ifdef GET_FUNCTION_RECOGNIZER
>>> StringRef NameR(Name+6, Len-6); // Skip over 'llvm.'
>>> switch (Name[5]) { // Dispatch on first letter.
>>> default: break;
>>> case 'A':
>>> …
>>> if (NameR.startswith("MDIL.barrier.")) return AMDILIntrinsic::AMDIL_barrier;
>>> if (NameR.startswith("MDIL.barrier.global.")) return AMDILIntrinsic::AMDIL_barrier_global;
>>> if (NameR.startswith("MDIL.barrier.local.")) return AMDILIntrinsic::AMDIL_barrier_local;
>>...
2010 Jul 13
1
StartsWith over vector of Strings?
...trings of arbitrary length
content <- c("abc", "def")
searchset <- c("a", "abc", "abcdef", "d", "def", "defghi")
Is it possible to determine the content String set that matches the
searchset in the sense of 'startswith' ? This would be a vector of all
strings in content that start with the string of any of the strings in
the searchset. In the little example here, this would be:
result <- c("abc", "abc", "def", "def")
Best,
Ralf
2016 May 09
2
LLVM issuse:AArch64 TargetParser
...as below, basing
on the naming rules of the arm architecture.
+//Only if -march startwith "armv" or "v" or "iwmmxt" or "xscale",it can be
seen valid and sended to TargetParser
+//for further parsing
+static bool checkArchValid(StringRef Arch)
+{
+ if ((Arch.startswith("armv")) || Arch[0] == 'v' ||
+ (Arch.startswith("iwmmxt")) || (Arch.startswith("xscale")))
+ return true;
+ return false;
+}
I just do a simple check in clang.As the TargetParser will parse it in
detail,if passed.
If you have any suggestions, plea...
2010 Sep 07
5
Remus blktap2 issue
Hello,
I have been playing around with Remus on Xen 4.0.1, attempting to fail-over
for an HVM domU.
I''ve run into some problems that I think could be related to tapdisk2 and
its interaction with how one sets up Remus disk replication in the domU
config file.
A few things I''ve noticed:
-The tap:remus:backupHostIP:port|aio:imagePath notation does not work for
me, although this
2023 Aug 24
1
Crash on "samba-tool domain level raise --domain-level=2016 --forest-level=2016"
...--schema=2019
samba-tool domain functionalprep --function-level=2016
the third instead failed:
> samba-tool domain level raise --domain-level=2016 --forest-level=2016
> ERROR(<class 'AttributeError'>): uncaught exception - 'NoneType'
> object has no attribute 'startswith'
> ? File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line
> 279, in _run
> ??? return self.run(*args, **kwargs)
> ?????????? ^^^^^^^^^^^^^^^^^^^^^^^^^
> ? File "/usr/lib/python3/dist-packages/samba/netcmd/domain/level.py",
> line 72, in ru...
2020 Jan 03
3
samba-tool user syncpasswords 4.10 bug
...ython3/dist-packages/samba/netcmd/user.py
I could fix it with this patch:
diff user.py.orig user.py
2001c2001
< reply = sync_command_p.communicate(input)[0]
---
> reply = sync_command_p.communicate(input.encode('utf-8'))[0]
2008c2008
< if reply.startswith("DONE-EXIT: "):
---
> if reply.startswith(bytes("DONE-EXIT: ", 'utf-8')):
As I am not an experienced Python programmer, there may be other solutions.
This bug seems to originate from the differences between Python2 and
Python3.
Peter
2014 Jun 19
2
[LLVMdev] [PATCH] triples for baremetal
.../ the frontend matches that.
if (Triple.getEnvironment() == llvm::Triple::EABI ||
- (Triple.getOS() == llvm::Triple::UnknownOS &&
+ (Triple.getOS() == llvm::Triple::NoneOS &&
Triple.getObjectFormat() == llvm::Triple::MachO) ||
StringRef(CPUName).startswith("cortex-m")) {
ABIName = "aapcs";
@@ -5128,7 +5128,7 @@
if (Str == "x86_64h")
T.setArchName(Str);
else if (Str == "armv6m" || Str == "armv7m" || Str == "armv7em") {
- T.setOS(llvm::Triple::UnknownOS);
+ T.setOS(llvm...
2014 Jun 17
4
[LLVMdev] triples for baremetal
[+llvmdev, -llvm-dev]
(Oopsies, llvmdev doesn't have a hyphen in it like all the others do)
On 6/17/14, 10:45 AM, Jonathan Roelofs wrote:
> [+llvm-dev, cfe-dev]
>
> Was "Re: [PATCH] ARM: allow inline atomics on Cortex M"
>
> On 6/17/14, 10:42 AM, Jonathan Roelofs wrote:
>>
>>
>> On 6/17/14, 9:35 AM, Renato Golin wrote:
>>> On 17 June 2014
2011 Aug 11
0
[PATCH] map nics-> bridges correctly in network pages, when cancelling nic configuration return to network page
...- type_cmd = "/files/etc/sysconfig/network-scripts/ifcfg-br%s/TYPE" % str(dev_interface)
- dev_type = augtool_get(type_cmd)
except:
pass
- if not dev_interface == "lo" and not dev_interface.startswith("br") and not dev_interface.startswith("bond") and not dev_interface.startswith("sit") and not "." in dev_interface:
- if not dev_type == "Bridge":
- self.nic_dict[dev_interface] = "%s,%s,%s,%s,%s,%s"...
2023 Aug 25
1
Crash on "samba-tool domain level raise --domain-level=2016 --forest-level=2016"
> the third instead failed:
>
>> samba-tool domain level raise --domain-level=2016 --forest-level=2016
>> ERROR(<class 'AttributeError'>): uncaught exception - 'NoneType'
>> object has no attribute 'startswith'
>> ? File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py",
>> line 279, in _run
>> ??? return self.run(*args, **kwargs)
>> ?????????? ^^^^^^^^^^^^^^^^^^^^^^^^^
>> ? File "/usr/lib/python3/dist-packages/samba/netcmd/domain/level.py",...
2010 Apr 29
2
substring comparison
Hi all,
I'm writing a script to do some basic text analysis in R. Let's assume
I have a data frame named data which contains a column named 'utt'
which contains strings. Is there a straightforward way to achieve
something like this:
data$ContainsThe <- ifelse(startsWith(data$Utt,"the"),"y","n")
or
data$ContainsThe <- ifelse(contains(data$Utt,"the"),"y","n")
?
I tried using grep
data$ContainsThe <- ifelse(grep("the",data$Utt),"y","n")
but this doesn't work becaus...
2024 Apr 11
1
[External] Re: Repeated library() of one package with different include.only= entries
...lude.only specification.
This is the "quite hard to accomplish" I alluded to, admittedly I hadn't
forced myself to write it all out -- maybe it's not as bad as all that.
After some iterations, today I think we'd want to do...
modify_attach = function(pkg, new_names) {
if (!startsWith(pkg, "package:")) pkg <- paste0("package:", pkg)
old <- tryCatch(ls(pkg, all.names=TRUE), error=\(c) character())
if (length(old)) detach(pkg)
attachNamespace(.rmpkg(pkg), include.only=c(new_names, old))
}
Perhaps detach() could invisibly return the exported names t...
2017 Aug 09
2
Asking Help
<span style="white-space:pre"> </span>Hi£¬I am a student in China and I am using Xapian to do some projects recently, for the error DatabaseModifiedError i dont know how to catch it in java, i do not find the relative class in xapian.jar. So I write this letter for help.<div><span style="white-space:pre"> </span>So sorry to interrupt
2017 Aug 09
1
Java bindings exceptions [was Re: Asking Help]
...a.io.IOException exception, and you can check
> for DatabaseModifiedError using code like this (untested):
>
> try {
> // Code which might cause DatabaseModifiedError.
> } catch (Exception e) {
Sorry, that should be:
} catch (java.io.IOException e) {
> if (e.toString().startsWith("DatabaseModifiedError:")) {
> // Deal with it.
> }
> }
Cheers,
Olly
2020 Jan 03
0
samba-tool user syncpasswords 4.10 bug
...> > diff user.py.orig user.py
> > 2001c2001
> > < reply = sync_command_p.communicate(input)[0]
> > ---
> >> reply =
> sync_command_p.communicate(input.encode('utf-8'))[0]
> > 2008c2008
> > < if reply.startswith("DONE-EXIT: "):
> > ---
> >> if reply.startswith(bytes("DONE-EXIT: ", 'utf-8')):
> >
> > As I am not an experienced Python programmer, there may be
> other solutions.
> >
> > This bug seems to originate from the dif...
2024 Apr 15
1
[External] Re: Repeated library() of one package with different include.only= entries
...uot;quite hard to accomplish" I alluded to, admittedly I hadn't
> forced myself to write it all out -- maybe it's not as bad as all that.
> After some iterations, today I think we'd want to do...
> modify_attach <- function(pkg, new_names) {
> if (!startsWith(pkg, "package:")) pkg <- paste0("package:", pkg)
> old <- tryCatch(ls(pkg, all.names=TRUE), error=\(c) character())
> if (length(old)) detach(pkg)
> attachNamespace(.rmpkg(pkg), include.only=c(new_names, old))
> }
> Perhaps detach(...