Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
ARF1 committed Mar 28, 2020
1 parent 4143a54 commit 4e8afd1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions llvmlite/ir/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,8 @@ def alloca(self, typ, size=None, name=''):
self._insert(al)
return al

def load(self, ptr, name='', align=None, atomic_ordering=None, volatile=False):
def load(self, ptr, name='', align=None, atomic_ordering=None,
volatile=False):
"""
Load value from pointer, with optional guaranteed alignment:
name = *ptr
Expand All @@ -737,7 +738,8 @@ def load(self, ptr, name='', align=None, atomic_ordering=None, volatile=False):
self._insert(ld)
return ld

def store(self, value, ptr, align=None, atomic_ordering=None, volatile=False):
def store(self, value, ptr, align=None, atomic_ordering=None,
volatile=False):
"""
Store value to pointer, with optional guaranteed alignment:
*ptr = name
Expand Down
6 changes: 4 additions & 2 deletions llvmlite/ir/instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ def descr(self, buf):


class LoadInstr(Instruction):
def __init__(self, parent, ptr, name='', align=None, atomic_ordering=None, volatile=False):
def __init__(self, parent, ptr, name='', align=None, atomic_ordering=None,
volatile=False):
if atomic_ordering is not None and align is None:
msg = "atomic load requires the align paramter to be specified"
raise ValueError(msg)
Expand Down Expand Up @@ -420,7 +421,8 @@ def descr(self, buf):


class StoreInstr(Instruction):
def __init__(self, parent, val, ptr, align=None, atomic_ordering=None, volatile=False):
def __init__(self, parent, val, ptr, align=None, atomic_ordering=None,
volatile=False):
if atomic_ordering is not None and align is None:
msg = "atomic store requires the align paramter to be specified"
raise ValueError(msg)
Expand Down

0 comments on commit 4e8afd1

Please sign in to comment.